On Sunday, November 25, 2012 9:07:54 PM UTC-5, Ryan Coleman wrote: > > > > > On Sun, Nov 25, 2012 at 10:22 AM, Ugo Bellavance <ug...@lubik.ca<javascript:> > > wrote: > >> Hi, >> >> I have 2 questions regarding puppet.conf file: >> >> >> 1. What should I do to use puppet to deploy puppet.conf files? I have >> only one puppetmaster, but I was wondering if I should push the same file >> on all my hosts (including the puppetmaster) or should I have a file >> specifically for puppetmaster. I want to push puppet.conf file because I >> want to set reporting on on clients, mostly. >> >> Try the cprice404-inifile module. It will let you manage individual > sections of puppet.conf instead of managing the whole file. For example, if > you just want to turn reporting on, you can declare the following resource > on all of your systems in whichever class you choose. > > ini_setting { 'enable_reporting': > path => '/etc/puppet/puppet.conf', > section => 'agent', > setting => 'report', > value => 'true', > ensure => present, > } > > http://forge.puppetlabs.com/cprice404/inifile > > I'll look into that, looks promising
> Side-note, report is set to true by default on Puppet 3 agents. Upgrade > today! :-) http://docs.puppetlabs.com/guides/upgrading.html > > >> 1. It looks like the default environment for puppetmaster was >> "Master". Should I change that to something else... I'd like to >> eventually >> use different environments (dev, staging, prod)? >> >> The default environment should be 'production'. Try `puppet config print > environment` on a modern Puppet version to be sure. Here's lots more on > environments. http://docs.puppetlabs.com/guides/environment.html > > > Puppet 2.6 doesn't support the config argument. But I wonder where I could have taken this [master] config from. Maybe a tutorial or a book... Since it is the only environment configured, I guess it would be harmless to rename it to production right? > -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/puppet-users/-/PO2PW5Kl1BIJ. >> To post to this group, send email to puppet...@googlegroups.com<javascript:> >> . >> To unsubscribe from this group, send email to >> puppet-users...@googlegroups.com <javascript:>. >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> > > > > -- > Ryan Coleman | Modules & Forge | @ryanycoleman | ryancoleman in #puppet > > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/IVE0VoQyGwkJ. 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.