Is it (still) not possible to provide via (global) parameters a list of
data to a smartproxy for a saltmaster?
In Foreman defined :
vhost_configs=['images','videos']
And on my SaltMaster in my init.sls
{% if pillar['vhost_configs'] is defined %}
{% for vhConf in pillar['vhost_configs'] %}
copyToConfFor{{vhConf}}:
file.recurse:
- name: /var/www/vhosts/{{ vhConf }}
- source: salt://vhost-dev/configs/{{ vhConf}}/
- user: root
- group: root
- file_mode: 755
- dir_mode: 755
{% endfor %}
{% endif %}
If I run an highstate to my desired minion host following error are
displayed
[root@smartproxy salt]# salt 'vmg-ngx-dev-*' state.highstate
vmg-ngx-dev-001.internal.zone:
Data failed to compile:
----------
Rendering SLS "dev:vhosts-sys" failed: Conflicting ID "copyToConfFor"
Normally should there be an "images" and a "videos" String at the End of
the state "copyToConfFor..." like defined in the state id before.
If I render for debug the value of pillar['vhost_configs'], it shows the
input of the variable as ['images','videos']
How to solve iterating over a list, provided by foreman as parameter?
Thanks for support,
Tom
--
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.