Skip to content

Instantly share code, notes, and snippets.

@libertyy
Last active August 29, 2015 14:08
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 libertyy/0508bdee4c995e80dbbd to your computer and use it in GitHub Desktop.
Save libertyy/0508bdee4c995e80dbbd to your computer and use it in GitHub Desktop.
Manage credentials through pillar_roots
master_config
------
file_roots:
base:
- /srv/salt
pillar_roots:
base:
- /srv/pillar
local_dev:
- /srv/local_dev/pillar/
salt/top.sls:
----------
base:
'*':
- app1
- app2
/srv/pillar/top.sls:
----------
base:
'*':
local_dev:
'*local_dev*':
- app.creds
/srv/local_dev/pillar/app/creds.sls
foo:
username: jane
userpassword: jane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment