Skip to content

Instantly share code, notes, and snippets.

@dginther
Created July 9, 2013 17:27
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 dginther/5959352 to your computer and use it in GitHub Desktop.
Save dginther/5959352 to your computer and use it in GitHub Desktop.
web:
'*-web*':
- roles.web
{% if grains ['nodename'] == 'prod-web2' %}
alias: secured
{% elif grains ['nodename'] == 'prod-web3' %}
alias: secured
{% elif grains ['nodename'] == 'prod-worker1' %}
role: worker
{% elif grains ['nodename'] == 'beta-all1' %}
alias: beta
{% elif grains ['nodename'] == 'critical-all1' %}
alias: critical
{% elif grains ['nodename'] == 'staging-all1' %}
alias: staging
{% elif grains ['nodename'] == 'sandbox-all1' %}
alias: sb
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment