On 27/10/16 06:48, francesc bassas wrote: > Hi, > I'm using Foreman 1.12 with puppet 3.8.7 > I've defined a global parameter which is a list of IP's and I would like > to use it as a value in a smart class parameter. Is this possible? > How can I reference to it? I mean if the parameter is "ips_list" I've > tried $::ips_list, but it does not work. > Excuse me if the answer is trivial.
<%= @host.params['ips_list'] %> should work. http://projects.theforeman.org/projects/foreman/wiki/TemplateWriting#Host--or-Hostgroup-parameters, other macros on that page should also work in the context of a smart class parameter or global parameter. -- Dominic Cleal [email protected] -- 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.
