You mean use something like the following: https://gist.github.com/smitherz82/8419976#file-puppetlabs-apache-version-pp