> I've never tried, so I dont know if there's a righter way to do it. > You may be able to access the config information from a rvalue > function inside your manifest. Take a look at > Puppet.settings[:storeconfigs]. As I recall here are different > settings for different sections of your config though. You should be > able to poke around at Puppet.settings from IRB. Take a look at the > scripts in contrib to get there.
thanks this put me in the right direction. it has to be done through a custom function, either test Puppet[] which seems to be a magic array, or you can do something like: Puppet[:config] = "/etc/puppet/puppet.conf" Puppet.parse_config pm_conf = Puppet.settings.instance_variable_get(:@values) if pm_conf[:puppetmasterd][:storeconfigs] == true or pm_conf[:master] [:storeconfigs] $storeconfigs = true end this is important to test if you're relying on correct data from exported resources, if it's not set you'll just get blank results and pushing data up goes nowhere. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.