Created
May 21, 2014 03:35
-
-
Save jaloren/1d7cbb706ed5d662058b 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
{% 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