2016.3.1 broke pillar merging #34804
Labels
Bug
broken, incorrect, or confusing behavior
Core
relates to code central or existential to Salt
Documentation
Relates to Salt documentation
P2
Priority 2
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
stale
Milestone
Description of Issue/Question
Hi guys,
I have recently upgraded from 2015.8.7 to 2016.3.1 and it broke my orchestration. I have set up my environment with each web server having a pillar file for each website that it has
Setup
Relivant part of the pillar file
Steps to Reproduce Issue
With 2015.8.7, running salt-call pillar.items websites returns an array of site1 and site2, now the same command only includes that last defined website
From master:
pillar_source_merging_strategy: recurse
Then I have changed pillar_merge_lists to True, so now running pillar.items website returns both websites in the array, but this causes a second issue
I have an orchestrator that runs like below
/usr/local/bin/salt-run state.orchestrate deploy pillar='{"websites": ["site1"]}'
This way I can deploy multiple sites at once, when I run it I get
The sls file is as below
What I have just found is that pillar='{"websites": ["site1"]}' in the command above used to overwrite the websites pillar and allow me to deploy without issues, but now it merges site1 with the current websites pillar so now I have a duplicate site1
Is there a way to overwrite pillars when passing through the command line and merging them otherwise?
Versions Report
The text was updated successfully, but these errors were encountered: