Skip to content

Commit 89688c8

Browse files
authored
Merge pull request #722 from imaqsood/PA-6277
(PA-6277) change manifests for amazon 2 repo
2 parents 500e243 + 5c3ffe8 commit 89688c8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

manifests/osfamily/redhat.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
'Amazon': {
2121
$major_version = $facts['os']['release']['major']
2222
$amz_el_version = "${major_version}" ? {
23-
'2' => '7',
2423
/^(2017|2018)$/ => '6',
2524
default => $major_version,
2625
}

spec/classes/puppet_agent_osfamily_redhat_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222
end
2323

24-
[['Rocky', 'el/8', 8], ['AlmaLinux', 'el/8', 8], ['Fedora', 'fedora/f36', 36], ['CentOS', 'el/7', 7], ['Amazon', 'el/6', 2017], ['Amazon', 'el/6', 2018], ['Amazon', 'el/7', 2], ['Amazon', 'amazon/2023', 2023]].each do |os, urlbit, osmajor|
24+
[['Rocky', 'el/8', 8], ['AlmaLinux', 'el/8', 8], ['Fedora', 'fedora/f36', 36], ['CentOS', 'el/7', 7], ['Amazon', 'el/6', 2017], ['Amazon', 'el/6', 2018], ['Amazon', 'amazon/2', 2], ['Amazon', 'amazon/2023', 2023]].each do |os, urlbit, osmajor|
2525
context "with #{os} and #{urlbit}" do
2626
let(:facts) do
2727
override_facts(super(), os: { name: os, release: { major: osmajor, }, })

0 commit comments

Comments
 (0)