Advertisement
Guest User

Untitled

a guest
Apr 11th, 2014
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ### my state file:
  2. {%- set testString1 ='test string to append' -%}
  3.  
  4.  
  5.  
  6.  
  7. salt-managed-file-append:
  8. file.append:
  9. - name: /root/test_tags
  10. - template: jinja
  11. - text:
  12. - {{ testString1 }}
  13. {%- if 'dmz' in pillar['tags'] -%}
  14. - 'dmzX'
  15. {%- endif -%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement