Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set os = grains['os'] %}
- {% set osmajorrelease = grains['osmajorrelease'] %}
- {% set path = "files/default/{{ os }}/{{ osmajorrelease }}/" %}
- {% for file in salt['cp.list_master']('prefix',path) %}
- {% set path_tokens = file.split('/') %}
- {% if file is string and '/etc/' in file %}
- {{ file }}:
- file.managed:
- - name: {{ file }}
- {% endif %}
- {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement