From c656d933fa11b51566b51cfbefa5769bc8271dd0 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Mon, 14 Feb 2022 16:34:12 -0800 Subject: [PATCH] puppet: Switch from $::memorysize_mb to non-legacy $::memory. --- puppet/zulip/manifests/common.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/puppet/zulip/manifests/common.pp b/puppet/zulip/manifests/common.pp index 8b3bbd0182..64ccb17a63 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',