I am trying to ensure a certain version of package which I have built to be installed. The variable my_pkg_version is from hiera
package { 'my_package_name':
ensure => $my_pkg_version,
notify => Service['service_name']
}
However the package is not getting upgraded when I put the new version in hiera and in yum repo. When I build a new system I am getting the version of package defined in hiera. But for already existing system with the package installed, it's not getting upgraded to the version.
I am putting the version in the format **1.0.0-6** . This is RHEL 7 system.
I ran the query `rpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}\n'` as suggested by Eric. The output: `my_package_name-1.0.0-6`.
As mentioned earlier my issue is with upgrades. Whenever a new system is provisioned I am getting the correct RPM version installed.
↧