Maybe pull the major version number out of the OS release so we're ready for EL7?  See an example here:
https://github.com/jmontleon/puppet-foreman/blob/6cfc24a52935336d09681f99e018764624cb43d1/manifests/params.pp#L72