Created
March 14, 2012 00:40
-
-
Save trane/2033017 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ david@samwise ] $ cat salt.sls | |
/etc/salt/minion: | |
file: | |
- managed | |
- owner: root | |
- group: root | |
- mode: 444 | |
- source: salt://salt/files/salt-minion.config | |
- template: jinja | |
- context: { | |
modules_dirs: | |
{% if grains['fqdn'] == 'clients.foo.bar'%} | |
"/home/core/modules" | |
{% else %} | |
"/opt/salt/modules" | |
{% endif %} | |
} | |
[ david@samwise ] $ cat salt-minion.config | |
master: ctl.foo.bar | |
modules_dirs: {{ modules_dirs }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment