Maybe, but the problem with the custom fact could be that it's only available on the second run, depending on how you write it. Maybe if you query rpm/dpkg for the installed version it could be fine for ```ensure => installed```, but for latest it may become a problem.

Ideally you would not need a custom fact. In theory this could be solved simply by providing a symlink in the RPM. It would be great if it was adopted wider so puppetlabs-apache could default to it and be done with it. Is this possible in practice?