Skip to content

Commit

Permalink
Merge pull request #702 from bastelfreak/arch2
Browse files Browse the repository at this point in the history
Cleanup architecture selection, dont fail on unknown architecture
  • Loading branch information
bastelfreak authored Nov 9, 2023
2 parents 375993e + 87a1a18 commit 2dc371b
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -311,17 +311,14 @@
Optional[String[1]] $proxy_server = undef,
Optional[Enum['none', 'http', 'https', 'ftp']] $proxy_type = undef,
) {
case $arch {
'x86_64', 'amd64': { $real_arch = 'amd64' }
'i386': { $real_arch = '386' }
'aarch64': { $real_arch = 'arm64' }
'armv7l': { $real_arch = 'armv7' }
'armv6l': { $real_arch = 'armv6' }
'armv5l': { $real_arch = 'armv5' }
'ppc64le': { $real_arch = 'ppc64le' }
default: {
fail("Unsupported kernel architecture: ${arch}")
}
$real_arch = $arch ? {
'x86_64' => 'amd64',
'i386' => '386',
'aarch64' => 'arm64',
'armv7l' => 'armv7',
'armv6l' => 'armv6',
'armv5l' => 'armv5',
default => $arch,
}

if $manage_prometheus_server {
Expand Down

0 comments on commit 2dc371b

Please sign in to comment.