Skip to content

Commit

Permalink
Merge pull request #228 from span786/PE-37297-add-amazon-linux-2023-p…
Browse files Browse the repository at this point in the history
…latform

Add Amazon linux 2023 platform support
  • Loading branch information
mhashizume authored Dec 20, 2023
2 parents 02f724a + 6063d22 commit fcf06b4
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 fcf06b4

Please sign in to comment.