The module should do this for us by setting a sane default for each supported OS and allowing you to override. Check out ntp for inspiration.

https://github.com/ghoneycutt/puppet-module-ntp/blob/master/manifests/init.pp