Skip to content

Instantly share code, notes, and snippets.

@SEJeff
Created March 15, 2012 16:22
Show Gist options
  • Save SEJeff/2045077 to your computer and use it in GitHub Desktop.
Save SEJeff/2045077 to your computer and use it in GitHub Desktop.
/etc/salt/minion:
file:
- managed
- owner: root
- group: root
- mode: 444
- source: salt://salt/files/salt-minion.config
- template: jinja
- context:
{% if grains['fqdn'] == 'clients.fatbox.ca' %}
modules_dirs: ['/home/core/code/production/salt/modules', '/opt/salt/modules']
{% else %}
modules_dirs: ['/opt/salt/modules']
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment