Skip to content

Instantly share code, notes, and snippets.

@Trefex
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Trefex/3028a050be7cb7ae39b8 to your computer and use it in GitHub Desktop.
Save Trefex/3028a050be7cb7ae39b8 to your computer and use it in GitHub Desktop.
AWS_Puppet
apt-get update
apt-get upgrade
apt-get install git
wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb
dpkg -i puppetlabs-release-trusty.deb
apt-get update
apt-get install puppet
puppet config print manifest --section master --environment production
cd /etc/puppet/
vim puppet.conf

Add to [main] section

environmentpath = /usr/share/puppet-envs/environments

and remove templatedir

mkdir -p /usr/share/puppet-envs/environments/production
mkdir /usr/share/puppet-envs/environments/production/{manifests,modules}
puppet config print manifest --section master --environment production
touch /usr/share/puppet-envs/environments/production/manifests/local.pp
node default {
  package { 'tree':
    ensure => 'present'
  }

  include mosh
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment