Specify the value of $ensure in the class declaration

This deprecates update_puppet variable
Add agent_package param

It is not called 'puppet' in at least one distro
Identation fix