Advertisement
Guest User

Untitled

a guest
Dec 28th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1.  
  2. base:
  3. '*':
  4. # - core.utils
  5. # - core.monitoring
  6. # - core.security
  7. # - webserver
  8. {% if grains['roles'] is defined %}
  9. {% for role in grains['roles'] %}
  10. 'roles:{{ role }}':
  11. - match: grain
  12. - {{ role }}
  13. {% endfor %}
  14. {% endif %}
  15.  
  16.  
  17. #{% set self = grains['roles'] %}
  18. # "roles:{{ self }}":
  19. # - match: grain
  20. # - {{ self }}
  21. # 'roles:webserver':
  22. # - match: grain
  23. # - webserver
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement