- wget http://apt.puppetlabs.com/puppetlabs-release-wheezy.deb
- sudo dpkg -i puppetlabs-release-wheezy.deb
- sudo apt-get update
- sudo apt-get install puppet
- sudo gem install hiera
git clone git@github.com:istlab/stereoConfig.git
- Copy hiera.yaml to /etc/
- Copy common.yaml to /etc/puppet/code/hiera/ (The common.yaml file contains username and corresponding password for each user in key value form. : )
It is a good practice to confirm whether the catalog compiles without errors and what are the changes going to happen. You may use the following command for the same:
- cd stereoConfig/
- sudo ./run.sh --noop
- In case of error, try `sudo ./run.sh --noop --debug' to debug the error
- cd stereoConfig/
- sudo ./run.sh >puppetLog.txt 2>puppetErr.txt
- Do not use resource name (class name etc.) with dash i.e., replace 'class apt-get' with 'class aptget'. Puppet 4 will complain.
- Do not name any resource with name 'attr' - this will result in a strange error and it took a long time for me to figure out.