From e632b8bcb5400df743076803319a2cffd5db930f Mon Sep 17 00:00:00 2001 From: Andrew Vant Date: Mon, 13 Apr 2015 16:08:11 -0400 Subject: [PATCH] Cloud file.recurse loop no longer hardcodes folder list. --- salt/cloud.sls | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/salt/cloud.sls b/salt/cloud.sls index f67a147..13bd5c0 100644 --- a/salt/cloud.sls +++ b/salt/cloud.sls @@ -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 %}