Advertisement
Guest User

Untitled

a guest
Apr 15th, 2014
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jinja part =====================
  2.  
  3. {% set munin = {
  4. 'group_server':{
  5. 'prod': 'ip1',
  6. 'test': 'ip2',
  7. },
  8. } %}
  9.  
  10. pillar ======================
  11. tags:
  12. tag_group: test
  13.  
  14.  
  15. some conf file that needs deployed: =============
  16.  
  17. {% from "something.jinja" import munin %}
  18.  
  19. {% if 'tag_group' in pillar['tags'] %}
  20. {{ munin.group_server[pillar.tags.tag_group] }}
  21. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement