Created
August 22, 2012 21:30
-
-
Save ryanycoleman/3429579 to your computer and use it in GitHub Desktop.
Puppet Module of the Day -- http://forge.puppetlabs.com/cprice404/inifile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ini_setting { "puppet_pluginsync": | |
| ensure => present, | |
| path => '/etc/puppet/puppet.conf', | |
| section => 'main', | |
| setting => 'pluginsync', | |
| value => 'true', | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [root@centos6 ~]# puppet module install cprice404-inifile | |
| Preparing to install into /etc/puppet/modules ... | |
| Downloading from http://forge.puppetlabs.com ... | |
| Installing -- do not interrupt ... | |
| /etc/puppet/modules | |
| └── cprice404-inifile (v0.0.2) | |
| [root@centos6 ~]# puppet apply cprice404-inifile.pp | |
| notice: /Stage[main]//Ini_setting[puppet_pluginsync]/ensure: created | |
| notice: Finished catalog run in 0.27 seconds | |
| [root@centos6 ~]# cat /etc/puppet/puppet.conf | |
| [main] | |
| # The Puppet log directory. | |
| # The default value is '$vardir/log'. | |
| logdir = /var/log/puppet | |
| # Where Puppet PID files are kept. | |
| # The default value is '$vardir/run'. | |
| rundir = /var/run/puppet | |
| # Where SSL certificates are kept. | |
| # The default value is '$confdir/ssl'. | |
| ssldir = $vardir/ssl | |
| pluginsync = true | |
| [agent] | |
| # The file in which puppetd stores a list of the classes | |
| # associated with the retrieved configuratiion. Can be loaded in | |
| # the separate ``puppet`` executable using the ``--loadclasses`` | |
| # option. | |
| # The default value is '$confdir/classes.txt'. | |
| classfile = $vardir/classes.txt | |
| # Where puppetd caches the local configuration. An | |
| # extension indicating the cache format is added automatically. | |
| # The default value is '$confdir/localconfig'. | |
| localconfig = $vardir/localconfig | |
| [root@centos6 ~]# puppet apply cprice404-inifile.pp | |
| notice: Finished catalog run in 0.25 seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment