lib/beaker-pe/install/pe_utils.rb in beaker-pe-2.11.12 vs lib/beaker-pe/install/pe_utils.rb in beaker-pe-2.11.13

- old
+ new

@@ -188,9 +188,15 @@ # We need to do a bit of a hacky process to install the agent if host['platform'] =~ /osx-10\.1(4|5)/ && (pe_version.eql?('2019.8.3') || pe_version.eql?('2019.8.4')) return "curl -kO https://#{downloadhost}:8140/packages/current/#{host['platform']}.bash && bash #{host['platform']}.bash" end + # PE 2019.8.5 has an issue with the GPG key that does not allow el-5 and sles-11 to install the puppet-agent + if host['platform'] =~ /(el-5)|(sles-11)/ && pe_version.eql?('2019.8.5') + on(host, "curl --remote-name --location http://yum.puppet.com/RPM-GPG-KEY-puppet-20250406") + on(host, "rpm --import RPM-GPG-KEY-puppet-20250406") + end + if host['platform'] =~ /windows/ then if use_puppet_ca_cert frictionless_install_opts << '-UsePuppetCA' cert_validator = %Q{\\$callback = {param(\\$sender,[System.Security.Cryptography.X509Certificates.X509Certificate]\\$certificate,[System.Security.Cryptography.X509Certificates.X509Chain]\\$chain,[System.Net.Security.SslPolicyErrors]\\$sslPolicyErrors);\\$CertificateType=[System.Security.Cryptography.X509Certificates.X509Certificate2];\\$CACert=\\$CertificateType::CreateFromCertFile('#{host['puppetpath']}/ssl/certs/ca.pem') -as \\$CertificateType;\\$chain.ChainPolicy.ExtraStore.Add(\\$CACert);return \\$chain.Build(\\$certificate)};[Net.ServicePointManager]::ServerCertificateValidationCallback = \\$callback} else