update puppet module to allow passing ensure through to packages.
Set the puppet version to 3.1.1 because of security issues fixed:

http://docs.puppetlabs.com/puppet/3/reference/release_notes.html#section