Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # here my test_file:
- groups:
- group1:
- {% if grains['os'] == 'OpenBSD' %}
- - wheel
- - dialer
- - wsrc
- {% elif grains['os'] == 'Ubuntu' %}
- - 1group
- {% endif %}
- group3:
- {% if grains['os'] == 'OpenBSD' %}
- - 3group
- - authpf
- - dialer
- {% elif grains['os'] == 'Ubuntu' %}
- - sudo
- {% endif %}
- # here the init.sls using the test_file:
- /tmp/test:
- file.managed:
- - source: salt://sample_jobs/test_file
- - template: jinja
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement