Refactoring the apt source to use the puppetlabs apt module and converting string true/false to boolean values.