Ok, thanks. I will have a look.
Currently I've done it with jinja.

As parameter value a simple csv List like 

vhost_configs=images,videos



and in the salt sls

{% for vhConf in pillar['vhost_configs'].splitt(',') %}


it works for me. :-)

-- Tom

Am Montag, 13. Juni 2016 23:54:29 UTC+2 schrieb Greg Sutcliffe:
>
> I can't comment on Salt, but yes, at present global parameters are still 
> simple strings (Ori, our parameters expert, has a plan for this, but it's 
> not finished yet). In the meantime, you could try ths workaround (this is 
> for Puppet which I know best, YMMV with Salt):
>
> Pick a class applied to every host (or every host that you care about for 
> this global)
> Add a smart class variable (not a class parameter, it's the third tab on 
> the class edit page)
> Add your array there, and override as you like
>
> Smart class variable predate class parameters, and are supplied to the ENC 
> as globals - but are attached to a class. The reasons for this are 
> historical and complex, but the above workaround will gte you an 
> array-valued global.
>
> Hope that helps!
> Greg
>

-- 
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.

Reply via email to