diff --git a/puppet/zulip/manifests/common.pp b/puppet/zulip/manifests/common.pp index c86188ca51..8663edcb50 100644 --- a/puppet/zulip/manifests/common.pp +++ b/puppet/zulip/manifests/common.pp @@ -33,7 +33,7 @@ class zulip::common { $total_memory_mb = Integer($::memorysize_mb) - $goarch = $::architecture ? { + $goarch = $::os['architecture'] ? { 'amd64' => 'amd64', 'aarch64' => 'arm64', } diff --git a/puppet/zulip/manifests/external_dep.pp b/puppet/zulip/manifests/external_dep.pp index e8020f38e7..8056e4c2aa 100644 --- a/puppet/zulip/manifests/external_dep.pp +++ b/puppet/zulip/manifests/external_dep.pp @@ -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 {