Advertisement
Guest User

Untitled

a guest
Nov 8th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. # here my test_file:
  2.  
  3. groups:
  4. group1:
  5. {% if grains['os'] == 'OpenBSD' %}
  6. - wheel
  7. - dialer
  8. - wsrc
  9. {% elif grains['os'] == 'Ubuntu' %}
  10. - 1group
  11. {% endif %}
  12. group3:
  13. {% if grains['os'] == 'OpenBSD' %}
  14. - 3group
  15. - authpf
  16. - dialer
  17. {% elif grains['os'] == 'Ubuntu' %}
  18. - sudo
  19. {% endif %}
  20.  
  21.  
  22. # here the init.sls using the test_file:
  23.  
  24. /tmp/test:
  25. file.managed:
  26. - source: salt://sample_jobs/test_file
  27. - template: jinja
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement