Skip to content

Commit

Permalink
[PE-37297]: Added support for amazon 2023 in redhat.pp manifest file
Browse files Browse the repository at this point in the history
  • Loading branch information
span786 committed Dec 19, 2023
1 parent 1b436d8 commit a7e1c36
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@
.envrc
/inventory.yaml
/spec/fixtures/litmus_inventory.yaml
/acceptance/junit
/acceptance/log
13 changes: 7 additions & 6 deletions manifests/osfamily/redhat.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
$platform_and_version = "fedora/${facts['os']['release']['major']}"
}
'Amazon': {
if ("${facts['os']['release']['major']}" == '2') {
$amz_el_version = '7'
} else {
$amz_el_version = '6'
}
$platform_and_version = "el/${amz_el_version}"
$major_version = $facts['os']['release']['major']
if ($major_version == '2')

Check failure on line 22 in manifests/osfamily/redhat.pp

View workflow job for this annotation

GitHub Actions / static_code_analysis / Run checks

trailing whitespace found (check: trailing_whitespace)
{ $platform_and_version = 'el/7' }

Check failure on line 23 in manifests/osfamily/redhat.pp

View workflow job for this annotation

GitHub Actions / static_code_analysis / Run checks

trailing whitespace found (check: trailing_whitespace)

Check failure on line 23 in manifests/osfamily/redhat.pp

View workflow job for this annotation

GitHub Actions / static_code_analysis / Run checks

there should be a single space before an opening brace (check: manifest_whitespace_opening_brace_before)

Check warning on line 23 in manifests/osfamily/redhat.pp

View workflow job for this annotation

GitHub Actions / static_code_analysis / Run checks

indent should be 8 chars and is 10 (check: strict_indent)
elsif ($major_version == '2017')
{ $platform_and_version = 'el/6' }

Check failure on line 25 in manifests/osfamily/redhat.pp

View workflow job for this annotation

GitHub Actions / static_code_analysis / Run checks

there should be a single space before an opening brace (check: manifest_whitespace_opening_brace_before)

Check warning on line 25 in manifests/osfamily/redhat.pp

View workflow job for this annotation

GitHub Actions / static_code_analysis / Run checks

indent should be 8 chars and is 10 (check: strict_indent)
else

Check failure on line 26 in manifests/osfamily/redhat.pp

View workflow job for this annotation

GitHub Actions / static_code_analysis / Run checks

trailing whitespace found (check: trailing_whitespace)
{ $platform_and_version = "amazon/${major_version}" }

Check failure on line 27 in manifests/osfamily/redhat.pp

View workflow job for this annotation

GitHub Actions / static_code_analysis / Run checks

there should be a single space before an opening brace (check: manifest_whitespace_opening_brace_before)

Check warning on line 27 in manifests/osfamily/redhat.pp

View workflow job for this annotation

GitHub Actions / static_code_analysis / Run checks

indent should be 8 chars and is 10 (check: strict_indent)
}
default: {
$platform_and_version = "el/${facts['os']['release']['major']}"
Expand Down

0 comments on commit a7e1c36

Please sign in to comment.