Skip to content

Commit

Permalink
Adding support for AL2-2023
Browse files Browse the repository at this point in the history
  • Loading branch information
malikparvez committed Sep 24, 2024
1 parent 4680ee4 commit a20d630
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions manifests/osfamily/redhat.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@
'2-aarch64' => '2',
'2-x86_64' => '7',
/^(2017|2018)-/ => '6',
'2023-x86_64' => '8',
'2023-aarch64' => '8',
default => $major_version,
}

$platform_and_version = "${amz_el_version}" ? {
/^(6|7)$/ => "el/${amz_el_version}",
/^(6|7|8)$/ => "el/${amz_el_version}",
default => "amazon/${amz_el_version}",
}
}
Expand All @@ -43,7 +45,7 @@
if $facts['os']['name'] == 'Amazon' {
# lint:ignore:only_variable_string
$pe_repo_dir = "${amz_el_version}" ? {
/^(6|7)$/ => "el-${amz_el_version}-${facts['os']['architecture']}",
/^(6|7|8)$/ => "el-${amz_el_version}-${facts['os']['architecture']}",
default => $facts['platform_tag'],
}
# lint:endignore
Expand Down

0 comments on commit a20d630

Please sign in to comment.