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 $::memorysize_mb to non-legacy $::memory.

Alex Vandiverc656d933fa11
diff --git a/puppet/zulip/manifests/common.pp b/puppet/zulip/manifests/common.pp
index 8b3bbd01827..64ccb17a637 100644
--- a/puppet/zulip/manifests/common.pp
+++ b/puppet/zulip/manifests/common.pp
@@ -31,7 +31,8 @@ class zulip::common {
}
$supervisor_conf_dir = "${supervisor_system_conf_dir}/zulip"
- $total_memory_mb = Integer($::memorysize_mb)
+ $total_memory_bytes = $::memory['system']['total_bytes']
+ $total_memory_mb = $total_memory_bytes / 1024 / 1024
$goarch = $::os['architecture'] ? {
'amd64' => 'amd64',