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
}