#!/bin/bash

sudo apt-get update
sudo apt-get install -y puppet puppet-common ruby facter
sudo gem install --no-rdoc r10k

sudo cp -a * /etc/puppet
sudo service puppet restart

cd /etc/puppet
sudo r10k puppetfile install -v info

#!/bin/bash

sudo apt-get update
sudo apt-get install -y puppet
sudo gem install --no-rdoc r10k

sudo cp -a * /etc/puppet
sudo service puppet restart

cd /etc/puppet
sudo r10k puppetfile install -v info

Remove redundant apt package installs
Remove redundant apt package installs

In her review, crinkle pointed out that puppet-common, ruby and facter are already dependencies of the puppet package. No need to include them again (this script is also presented inline in the book, so simpler is better).