Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Alex Vandivera787ebe0e23e
diff --git a/puppet/zulip/manifests/common.pp b/puppet/zulip/manifests/common.pp
index c86188ca518..8663edcb506 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 e8020f38e7d..8056e4c2aad 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 {