Skip to content

Commit

Permalink
architecture selection: switch to selector
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Nov 8, 2023
1 parent 722b975 commit 87a1a18
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -311,14 +311,14 @@
Optional[String[1]] $proxy_server = undef,
Optional[Enum['none', 'http', 'https', 'ftp']] $proxy_type = undef,
) {
case $arch {
'x86_64': { $real_arch = 'amd64' }
'i386': { $real_arch = '386' }
'aarch64': { $real_arch = 'arm64' }
'armv7l': { $real_arch = 'armv7' }
'armv6l': { $real_arch = 'armv6' }
'armv5l': { $real_arch = 'armv5' }
default: { $real_arch = $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 87a1a18

Please sign in to comment.