Fixes to install and run the latest Puppet on Debian/Ubuntu

Merge elasticdog:master and ganguera:master to:
- Set the right APT repos.
- New way of referring variables on templates.
- Ignore .DS_Store