Skip to content

Instantly share code, notes, and snippets.

@germs12
Last active December 23, 2015 23:59
Show Gist options
  • Select an option

  • Save germs12/6713332 to your computer and use it in GitHub Desktop.

Select an option

Save germs12/6713332 to your computer and use it in GitHub Desktop.
Puppet on Ubuntun 12.04
# https://help.ubuntu.com/lts/serverguide/puppet.html
# http://docs.puppetlabs.com/puppet_core_types_cheatsheet.pdf
# http://docs.puppetlabs.com/module_cheat_sheet.pdf
# http://docs.puppetlabs.com/references/latest/type.html
# http://docs.puppetlabs.com/puppet/latest/reference/lang_summary.html
# http://puppetlabs.com/blog/deploying-puppet-in-client-server-standalone-and-massively-scaled-environments
# Started with this:
# http://docs.puppetlabs.com/guides/installation.html#pre-install
########################################################
#Configure Puppet
Puppet’s main configuration file is found at /etc/puppet/puppet.conf
# STANDALONE
On Standalone Nodes
Settings for standalone puppet nodes should go in the [main] block of puppet.conf.
Puppet’s default settings are generally appropriate for standalone nodes. No additional configuration is necessary unless you intend to use centralized reporting or an external node classifier.
# START AND ENABLE Puppet Services w/ CRON
jthullbery@ws1:~$ sudo puppet resource cron puppet-apply ensure=present user=root minute=30 command='/usr/bin/puppet apply $(puppet --configprint manifest)'
Notice: /Cron[puppet-apply]/ensure: created
cron { 'puppet-apply':
ensure => 'present',
command => '/usr/bin/puppet apply $(puppet --configprint manifest)',
minute => ['30'],
target => 'root',
user => 'root',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment