instead of 

<pre>
if ...
  case ...
</pre>

just do case and then the if statements like we do in the ntp module

https://github.com/ghoneycutt/puppet-module-ntp/blob/master/manifests/init.pp#L172