Skip to content

Instantly share code, notes, and snippets.

@ernetas
Last active December 1, 2015 22:30
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 ernetas/1666029b9180a0177ceb to your computer and use it in GitHub Desktop.
Save ernetas/1666029b9180a0177ceb to your computer and use it in GitHub Desktop.
include:
{% for instance, args in salt['grains.get']('dd:instances', {}).iteritems() %}
{% if 'roles' in args and 'frontend' in args['roles'] %}
- nginx
{% endif %}
{% endfor %}
@ernetas
Copy link
Author

ernetas commented Dec 1, 2015

dd:
  instances:
    da-1:
      roles: deployer,frontend
      port: 80
    da-2:
      port: 8080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment