Fixes #3148: Added versions support to the apt and rpm installation Poli...

...cy Templates

To be merged in the 2.3 Rudder branch

Ticket: https://www.rudder-project.org/redmine/issues/3148