Skip to content

Instantly share code, notes, and snippets.

@Trefex Trefex/AWS_Puppet.md
Last active Aug 29, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.