Step-by-step guide
-
wget https://apt.puppetlabs.com/puppet5-release-xenial.deb
sudo dpkg -i puppet5-release-xenial.deb
sudo apt update
sudo apt install puppet-agent
sudo vim /etc/environment
- add /opt/puppetlabs/bin to PATH
source environment
sudo visudo
- add /opt/puppetlabs/bin to secure_path
cd ~/.ssh
ssh-keygen
eval `ssh-agent`
ssh-add id_rsa
- Copy and Paste the generated public key to your git repo settings
cd /etc/puppetlabs/code/environments
sudo mv production production.sample
sudo git clone [your git repo https url] production
sudo chown -R [your_user:your_group] production
cd production
git remote set-url origin [your git repo ssh url]
git ls-remote
puppet apply manifests
sudo puppet apply manifests