puppet: Switch from $::memorysize_mb to non-legacy $::memory.

This commit is contained in:
Alex Vandiver 2022-02-14 16:34:12 -08:00 committed by Alex Vandiver
parent f2f4462e71
commit c656d933fa
1 changed files with 2 additions and 1 deletions

View File

@ -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',