Skip to content

Instantly share code, notes, and snippets.

@jaloren
Created May 21, 2014 03:35
Show Gist options
  • Save jaloren/1d7cbb706ed5d662058b to your computer and use it in GitHub Desktop.
Save jaloren/1d7cbb706ed5d662058b to your computer and use it in GitHub Desktop.
{% from 'namemap.sls' import namemap with context %}
{% set roles = {
'performance_cdh': [namemap.node68,namemap.node69,namemap.node70,
namemap.node71,namemap.node72,namemap.node73,namemap.node74,namemap.node75],
'network': [namemap.node2] }
%}
roles:
{% for role, items in roles.items() %}
{% if grains['id'] in items %}
- {{ role }}
{% endif %}
{% endfor %}
- 'base'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment