Add ensure parameter to packages

Allows setting ensure to 'latest' to upgrade packages.
could you please consolidate these lines by using validate_string()

https://github.com/puppetlabs/puppetlabs-stdlib/tree/3.2.0#validate_string