Skip to content

Commit

Permalink
[PE-37297]: Added Amazon lInux 2023 platform support
Browse files Browse the repository at this point in the history
  • Loading branch information
span786 committed Dec 12, 2023
1 parent c979ea2 commit 6063d22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/beaker-puppet/install_utils/foss_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 6063d22

Please sign in to comment.