|
|
|
|
|
|
|
|
{% 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 %} |