On 07/25/2011 05:07 AM, Zain Memon wrote:
> Is there some way I can access variables from puppet.conf (e.g.
> $confdir) in my manifest?

${settings::confdir} but in a master client/setup these are the settings
from the master. So what you want to do is to write a custom fact that
exposes your setting. This is quite easy:

Facter.add("confdir") do
  setcode do
    Puppet.settings[:confdir]
  end
end

~pete

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to