I figured it out ! Short answer: Cannot be done without customization. http://docs.puppetlabs.com/puppet/3/reference/lang_variables.html#facts-and-built-in-variables Master-Set Variables : $settings::<name of setting> — the value of any of the master’s configuration settings. This is implemented as a special namespace and these variables must be referred to by their qualified names. Note that, other than $environment, the agent node’s settings are not available in manifests. If you wish to expose them to the master in Puppet 3, you will have to create a custom fact.
So I am going to make a top or node level variable that I will load with hiera ! On May 2, 2013, at 8:38 AM, Dan White wrote: > Reference: > http://www.mail-archive.com/[email protected]/msg41278.html > > Still having issues. > > Even if I explicitly set confdir in the command line: > > puppet agent --no-daemonize --onetime --test --noop --no-report > --confdir=/etc/puppet > > Manifests containing %{::settings::confdir} give me the value from the > puppet-master even though the command > > puppet config print confdir > > on the agent returns /etc/puppet > > I guess it boils does to how does one access settings on the local agent in > the manifests ? > -- You received this message because you are subscribed to the Google Groups "Puppet 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 http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
