Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@disaster123
Created January 11, 2017 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save disaster123/2ab1260c9c31eee05b2a15816f009f49 to your computer and use it in GitHub Desktop.
Save disaster123/2ab1260c9c31eee05b2a15816f009f49 to your computer and use it in GitHub Desktop.
pillar merging control
File1:
ssh:
users:
root:
keys:
- user1
- user2
- user3
- user4
File2:
ssh:
users:
root:
__: overwrite
keys:
- user1
- user2
The result is this:
# salt-call pillar.items ssh:users:root
local:
----------
ssh:users:root:
----------
__:
overwrite
keys:
- user1
- user2
- user3
- user4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment