Browse Source

Cloud file.recurse loop no longer hardcodes folder list.

master
Andrew Vant 9 years ago
parent
commit
e632b8bcb5
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      salt/cloud.sls

+ 2
- 3
salt/cloud.sls View File

{% endfor %} {% endfor %}
{% endfor %} {% endfor %}


{%- for dir in ['providers', 'profiles', 'maps'] %}
{%- set source = salt_settings.cloud.template_sources.get(dir) %}
{%- for dir, templ_path in salt_settings.cloud.template_sources.items() %}
salt-cloud-{{ dir }}: salt-cloud-{{ dir }}:
file.recurse: file.recurse:
- name: /etc/salt/cloud.{{ dir }}.d - name: /etc/salt/cloud.{{ dir }}.d
- source: {{ source }}
- source: {{ templ_path }}
- template: jinja - template: jinja
- makedirs: True - makedirs: True
{%- endfor %} {%- endfor %}

Loading…
Cancel
Save