Open ianmiell opened 5 years ago
This fixes it:
yum_package pkg_master_to_install.reject { |x| x == "tuned-profiles-#{node['cookbook-openshift3']['openshift_service_type']}-node" && (node['cookbook-openshift3']['ose_major_version'].split('.')[1].to_i >= 9 || node['cookbook-openshift3']['control_upgrade_version'].to_i >= 39) } do
action :install
version Array.new(pkg_master_to_install.reject { |x| x == "tuned-profiles-#{node['cookbook-openshift3']['openshift_service_type']}-node" && (node['cookbook-openshift3']['ose_major_version'].split('.')[1].to_i >= 9 || node['cookbook-openshift3']['control_upgrade_version'].to_i >= 39) }.size, version) unless version.nil?
options new_resource.options.nil? ? node['cookbook-openshift3']['openshift_yum_options'] : new_resource.options
notifies :run, 'execute[daemon-reload]', :immediately
not_if { node['cookbook-openshift3']['deploy_containerized'] || (is_certificate_server && node['fqdn'] != first_master['fqdn']) }
retries 3
end
:+1:
Keep hitting this error:
looking at the trace, I see that there are 5 packages and six versions in the array:
investigating further.