diff --git a/manifests/source.pp b/manifests/source.pp index 4e14d8a0a5..be5b1c4752 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -125,11 +125,17 @@ $header = epp('apt/_header.epp') + if $architecture { + $_architecture = regsubst($architecture, '\baarch64\b', 'arm64') + } else { + $_architecture = undef + } + $sourcelist = epp('apt/source.list.epp', { 'comment' => $comment, 'includes' => $includes, 'options' => delete_undef_values({ - 'arch' => $architecture, + 'arch' => $_architecture, 'trusted' => $allow_unsigned ? {true => "yes", false => undef}, 'signed-by' => $keyring, }),