Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 257

Ensuring RPM package version

$
0
0
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.

Viewing all articles
Browse latest Browse all 257

Trending Articles