From 6063d22b6c4449df795731f5853c3c75241240c4 Mon Sep 17 00:00:00 2001 From: Saurabh Pandit Date: Tue, 12 Dec 2023 15:04:20 +0530 Subject: [PATCH] [PE-37297]: Added Amazon lInux 2023 platform support --- lib/beaker-puppet/install_utils/foss_utils.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/beaker-puppet/install_utils/foss_utils.rb b/lib/beaker-puppet/install_utils/foss_utils.rb index b9bcc2c..663b827 100644 --- a/lib/beaker-puppet/install_utils/foss_utils.rb +++ b/lib/beaker-puppet/install_utils/foss_utils.rb @@ -406,7 +406,7 @@ def install_puppet_agent_on(hosts, opts = {}) end case host['platform'] - when /el-|redhat|fedora|sles|centos|cisco_/ + when /amazon|el-|redhat|fedora|sles|centos|cisco_/ package_name = 'puppet-agent' package_name << "-#{opts[:puppet_agent_version]}" if opts[:puppet_agent_version] when /debian|ubuntu|huaweios/ @@ -993,7 +993,7 @@ def install_puppetlabs_release_repo_on(hosts, repo = nil, opts = options) opts = sanitize_opts(opts) case variant - when /^(fedora|el|redhat|centos|sles|cisco_nexus|cisco_ios_xr)$/ + when /^(amazon|fedora|el|redhat|centos|sles|cisco_nexus|cisco_ios_xr)$/ variant_url_value = (%w[redhat centos].include?(::Regexp.last_match(1)) ? 'el' : ::Regexp.last_match(1)) if variant == 'cisco_nexus' variant_url_value = 'cisco-wrlinux'