all the params should be validated. Tests should be added that demonstrate failure if validation fails. Check out nscd for examples - https://github.com/ghoneycutt/puppet-module-nscd/blob/master/manifests/init.pp