The most recent version of the Amazon Linux VMI (2015.09.1) seems to install version 2 of Puppet by default.
However, if you need to install Puppet 3...
If you are using Linux, there is simple way to check if a user exists in MySQL:
echo `mysql -u root -p**[your root password]** -e 'use mysql; SELECT ...
THE PROBLEM
Puppet allows deploying a structure of directories and files conveniently using the file resource.
Using the attributes 'source => …' an...