2
0

Cloud file.recurse loop no longer hardcodes folder list.

This commit is contained in:
Andrew Vant 2015-04-13 16:08:11 -04:00
parent ba143c1810
commit e632b8bcb5

View File

@ -49,12 +49,11 @@ cloud-cert-{{ cert }}-pem:
{% 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 }}:
file.recurse:
- name: /etc/salt/cloud.{{ dir }}.d
- source: {{ source }}
- source: {{ templ_path }}
- template: jinja
- makedirs: True
{%- endfor %}