You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RHEL-5's older version of yum has the gpgcheck option which is typically set to true in systems. When chef_ingredient uses yum to install a local package the gpg check is performed which fails because no key has been installed.
RHEL-6 and RHEL-7 have versions of yum that use a new localgpgcheck option. By default the localgpgcheck option won't check gpg signatures when installing local packages so chef_ingredient works fine for RHEL-6 and RHEL-7.
Here is a link to the change in yum which added the localgpgcheck option.
A workaround is to add the options '--nogpgcheck' property to the chef_ingredient resource when using chef-ingredient cookbook >= 2.1.4 on RHEL-5.
This seems like a regression though. Shouldn't the chef_ingredient resource be fixed so it automatically disables the gpgcheck when installing local packages on a RHEL-5 system?
Steps to Reproduce:
chef_ingredient 'angry-omnibus-toolchain' do
version '1.1.73'
channel :stable
architecture 'x86_64'
platform_version_compatibility_mode true
action :upgrade
end
Expected Result:
I expect the angry-omnibus-toolchain package to be installed.
Actual Result:
* yum_package[angry-omnibus-toolchain] action upgrade
================================================================================
Error executing action `upgrade` on resource 'yum_package[angry-omnibus-toolchain]'
================================================================================
Chef::Exceptions::Exec
----------------------
yum -d0 -e0 -y localinstall /tmp/kitchen/cache/angry-omnibus-toolchain-1.1.73-1.el5.x86_64.rpm returned 1:
STDOUT:
STDERR: warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 83ef826a
Public key for angry-omnibus-toolchain-1.1.73-1.el5.x86_64.rpm is not installed
The text was updated successfully, but these errors were encountered:
Cookbook version
2.1.5
Chef-client version
13.2.20
Platform Details
AWS RHEL-5
Scenario:
chef-ingredient cookbook >= 2.1.4 now uses the yum provider instead of the rpm provider to install packages on RHEL platforms.
Reference:
2.1.4 CHANGELOG
Issue 181
PR 182
RHEL-5's older version of yum has the gpgcheck option which is typically set to true in systems. When chef_ingredient uses yum to install a local package the gpg check is performed which fails because no key has been installed.
RHEL-6 and RHEL-7 have versions of yum that use a new localgpgcheck option. By default the localgpgcheck option won't check gpg signatures when installing local packages so chef_ingredient works fine for RHEL-6 and RHEL-7.
Here is a link to the change in yum which added the
localgpgcheck
option.henrysher/yum@2909334
A workaround is to add the
options '--nogpgcheck'
property to the chef_ingredient resource when using chef-ingredient cookbook >= 2.1.4 on RHEL-5.This seems like a regression though. Shouldn't the chef_ingredient resource be fixed so it automatically disables the gpgcheck when installing local packages on a RHEL-5 system?
Steps to Reproduce:
Expected Result:
I expect the angry-omnibus-toolchain package to be installed.
Actual Result:
The text was updated successfully, but these errors were encountered: