|
|
|
|
|
|
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
{% for providers in salt_settings.cloud.providers %} |
|
|
{% for providers in salt_settings.cloud.providers %} |
|
|
salt-cloud-profiles-{{ providers }}: |
|
|
|
|
|
file.managed: |
|
|
|
|
|
- name: /etc/salt/cloud.profiles.d/{{ providers }}.conf |
|
|
|
|
|
- template: jinja |
|
|
|
|
|
- source: salt://salt/files/cloud.profiles.d/{{ providers }}.conf |
|
|
|
|
|
|
|
|
|
|
|
salt-cloud-providers-{{ providers }}: |
|
|
salt-cloud-providers-{{ providers }}: |
|
|
file.managed: |
|
|
file.managed: |
|
|
- name: /etc/salt/cloud.providers.d/{{ providers }}.conf |
|
|
- name: /etc/salt/cloud.providers.d/{{ providers }}.conf |
|
|
- template: jinja |
|
|
- template: jinja |
|
|
- source: salt://salt/files/cloud.providers.d/{{ providers }}.conf |
|
|
- source: salt://salt/files/cloud.providers.d/{{ providers }}.conf |
|
|
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
salt-cloud-maps-{{ providers }}: |
|
|
|
|
|
file.managed: |
|
|
|
|
|
- name: /etc/salt/cloud.maps.d/{{ providers }}.conf |
|
|
|
|
|
|
|
|
{%- for dir in ['profiles', 'maps'] %} |
|
|
|
|
|
{%- set default_src = 'salt://salt/files/cloud.{}.d'.format(dir) %} |
|
|
|
|
|
{%- set source = salt_settings.cloud.get(dir + "_src", default_src) %} |
|
|
|
|
|
salt-cloud-{{ dir }}: |
|
|
|
|
|
file.recurse: |
|
|
|
|
|
- name: /etc/salt/cloud.{{ dir }}.d |
|
|
|
|
|
- source: {{ source }} |
|
|
- template: jinja |
|
|
- template: jinja |
|
|
- source: salt://salt/files/cloud.maps.d/{{ providers }}.conf |
|
|
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
{%- endfor %} |