puppet: Switch from $::architecture to non-legacy $::os.

This commit is contained in:
Alex Vandiver 2022-02-14 16:28:08 -08:00 committed by Alex Vandiver
parent d7e8733705
commit a787ebe0e2
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ class zulip::common {
$total_memory_mb = Integer($::memorysize_mb)
$goarch = $::architecture ? {
$goarch = $::os['architecture'] ? {
'amd64' => 'amd64',
'aarch64' => 'arm64',
}

View File

@ -6,9 +6,9 @@ define zulip::external_dep(
) {
if $sha256 == '' {
if $zulip::common::versions[$title]['sha256'] =~ Hash {
$sha256_filled = $zulip::common::versions[$title]['sha256'][$::architecture]
$sha256_filled = $zulip::common::versions[$title]['sha256'][$::os['architecture']]
if $sha256_filled == undef {
err("No sha256 found for ${title} for architecture ${::architecture}")
err("No sha256 found for ${title} for architecture ${::os['architecture']}")
fail()
}
} else {