Hi,I have 2 questions regarding puppet.conf file:
- 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.
ini_setting { 'enable_reporting':
path => '/etc/puppet/puppet.conf',
section => 'agent',
setting => 'report',
value => 'true',
ensure => present,
}http://forge.puppetlabs.com/cprice404/inifile
- 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...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@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 <ug...@lubik.ca> wrote:Hi,I have 2 questions regarding puppet.conf file:
- 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.
http://forge.puppetlabs.com/cprice404/inifileini_setting { 'enable_reporting': path => '/etc/puppet/puppet.conf', section => 'agent', setting => 'report', value => 'true', ensure => present, }
Side-note, report is set to true by default on Puppet 3 agents. Upgrade today! :-) http://docs.puppetlabs.com/guides/upgrading.html
- 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
--
Chad M. Huneycutt
On Sun, Nov 25, 2012 at 10:22 AM, Ugo Bellavance <ug...@lubik.ca> wrote:Hi,I have 2 questions regarding puppet.conf file:
- 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.
http://forge.puppetlabs.com/cprice404/inifileini_setting { 'enable_reporting': path => '/etc/puppet/puppet.conf', section => 'agent', setting => 'report', value => 'true', ensure => present, }