Zain Memon
2011-Jul-25 03:07 UTC
[Puppet Users] Accessing puppet.conf settings in a manifest
Is there some way I can access variables from puppet.conf (e.g. $confdir) in my manifest? -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Peter Meier
2011-Jul-25 14:10 UTC
Re: [Puppet Users] Accessing puppet.conf settings in a manifest
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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.