Skip to content

Instantly share code, notes, and snippets.

Created June 29, 2015 11:59
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 anonymous/1d55bd903636c591d748 to your computer and use it in GitHub Desktop.
Save anonymous/1d55bd903636c591d748 to your computer and use it in GitHub Desktop.
{% import_yaml '/srv/bacula/passwords.yaml' as passwords %}
- bacula.passwords:
- {{ minion.id }}: {{ passwords[ minion.id ] }}
{% import_yaml '/srv/bacula/passwords.yaml' as passwords %}
- bacula.passwords:
{% for name, password in passwords.items %} - {{name }}: {{ password }}
{% endfor %}
pillar:
- 'bacula_host*':
- baculaPasswords
- '*':
- buculaMinion
passwords:
- host1: abc123
- host2: def456
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment