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. 2. 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)? -- 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-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.
On Sun, Nov 25, 2012 at 10:22 AM, Ugo Bellavance <ugob@lubik.ca> 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 individualsections 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 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 printenvironment` on a modern Puppet version to be sure. Here''s lots more on environments. http://docs.puppetlabs.com/guides/environment.html> -- > 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-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. >-- Ryan Coleman | Modules & Forge | @ryanycoleman | ryancoleman in #puppet -- 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.
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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tue, Nov 27, 2012 at 9:46 AM, Ugo Bellavance <ugob@lubik.ca> wrote:> 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> wrote: >>> >>> 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?The [master] section of the config file does not specify an environment. That is options that apply to the master only. You can also use [agent] (and probably [cert], [apply], etc.). -- Chad M. Huneycutt -- 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.
On Tuesday, November 27, 2012 10:24:25 AM UTC-5, Chad Huneycutt wrote:> > On Tue, Nov 27, 2012 at 9:46 AM, Ugo Bellavance <ug...@lubik.ca<javascript:>> > wrote: > > 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> > wrote: > >>> > >>> 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? > > The [master] section of the config file does not specify an > environment. That is options that apply to the master only. You can > also use [agent] (and probably [cert], [apply], etc.). >Ah, must be a foreman issue then... Foreman sees "Master" as my environment...> > > -- > Chad M. Huneycutt >-- 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/-/4hr_XxKkf-kJ. 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.
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 >My original question was more: can I have the same puppet.conf for nodes that simple agents and for my puppetmaster? Thanks, Ugo -- 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/-/Dho85NA7hfsJ. 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.
On Fri, 2012-11-30 at 06:06 -0800, Ugo Bellavance wrote:> 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. > > My original question was more: can I have the same puppet.conf for nodes > that simple agents and for my puppetmaster?Yes, you can. The agents will simply ignore any master-specific configuration options present in the puppet.conf file. On my system, I''ve actually configured the puppet master to use a separate configuration file from the puppet agents. You can do this fairly easily by editing the init script (on debian/ubuntu you can do this in /etc/defaults/puppetmaster) to pass "--config_file_name=puppetmaster" when starting the master process. -- Calvin Walton <calvin.walton@kepstin.ca>