Skip to content

Commit

Permalink
(PA-6277) change manifests for amazon 2 repo
Browse files Browse the repository at this point in the history
  • Loading branch information
imaqsood committed Jun 10, 2024
1 parent c4999d4 commit 5c3ffe8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion manifests/osfamily/redhat.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
'Amazon': {
$major_version = $facts['os']['release']['major']
$amz_el_version = "${major_version}" ? {
'2' => '7',
/^(2017|2018)$/ => '6',
default => $major_version,
}
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/puppet_agent_osfamily_redhat_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
end

[['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|
[['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|
context "with #{os} and #{urlbit}" do
let(:facts) do
override_facts(super(), os: { name: os, release: { major: osmajor, }, })
Expand Down

0 comments on commit 5c3ffe8

Please sign in to comment.