On Mar 19, 2009, at 6:05 PM, Trevor Hemsley wrote: > > > > Luke Kanies wrote: >> You should be able to do this with something like: >> >> # puppet.conf >> configfile = /etc/puppet/puppet.conf{owner = root, group = ...} >> >> I'm typing from not-very-good memory here; I don't remember if that's >> the right param, or if you need '=' or '=>' here. The >> ConfigurationReference should make both clear. >> > I checked the ConfigurationReference and even cut and pasted the > example > it gives and amended the path to point to /etc/puppet/puppet.conf so > it > said > > myfile = /etc/puppet/puppet.conf {owner = root, mode = 644} > > but it does not work (also tried as configfile = as you suggested > above).
Like I said, I wasn't sure of the parameter - it's 'config', I just tried it and it works for me. Try that. > > # puppetd --test --trace --tags puppetperms > /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:1070:in `send': > undefined method `owner=' for nil:NilClass (NoMethodError) > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb: > 1070:in > `set_metadata' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb: > 1069:in > `each' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb: > 1069:in > `set_metadata' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb: > 1068:in > `each' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb: > 1068:in > `set_metadata' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:381:in > `unsafe_parse' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:379:in > `each' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:379:in > `unsafe_parse' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:344:in > `parse' > from /usr/lib/ruby/1.8/sync.rb:229:in `synchronize' > from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:343:in > `parse' > from /usr/lib/ruby/site_ruby/1.8/puppet.rb:177:in > `parse_config' > from /usr/sbin/puppetd:274 > > I'll raise two bugs then :( > > -- > > Trevor Hemsley > Infrastructure Engineer > ................................................. > * C A L Y P S O > * 4th Floor, Tower Point, > 44 North Road, > Brighton, BN1 1YR, UK > > OFFICE +44 (0) 1273 666 350 > FAX +44 (0) 1273 666 351 > > ................................................. > www.calypso.com > > This electronic-mail might contain confidential information intended > only for the use by the entity named. If the reader of this message is > not the intended recipient, the reader is hereby notified that any > dissemination, distribution or copying is strictly prohibited. > > * P * /*/ Please consider the environment before printing this e- > mail /*/ > > > > -- He is indebted to his memory for his jests and to his imagination for his facts. --Richard Brinsley Sheridan --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---