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'