Puppet apply sets main configuration directory
Make sure the script is run as root
Send an email when puppet fails (not when the tee fails)