Skip to content

Commit 076abee

Browse files
committed
[PE-37297]: Added support for amazon 2023 in redhat.pp manifest file
1 parent 1b436d8 commit 076abee

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@
2626
.envrc
2727
/inventory.yaml
2828
/spec/fixtures/litmus_inventory.yaml
29+
/acceptance/junit
30+
/acceptance/log

manifests/osfamily/redhat.pp

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@
1818
$platform_and_version = "fedora/${facts['os']['release']['major']}"
1919
}
2020
'Amazon': {
21-
if ("${facts['os']['release']['major']}" == '2') {
22-
$amz_el_version = '7'
23-
} else {
24-
$amz_el_version = '6'
21+
$major_version = $facts['os']['release']['major']
22+
if ($major_version == '2') {
23+
$platform_and_version = 'el/7'
24+
}
25+
elsif ($major_version == '2017') {
26+
$platform_and_version = 'el/6'
27+
}
28+
else {
29+
$platform_and_version = "amazon/${major_version}"
2530
}
26-
$platform_and_version = "el/${amz_el_version}"
2731
}
2832
default: {
2933
$platform_and_version = "el/${facts['os']['release']['major']}"

0 commit comments

Comments
 (0)