mirror of https://github.com/zulip/zulip.git
puppet: Switch from $::architecture to non-legacy $::os.
This commit is contained in:
parent
d7e8733705
commit
a787ebe0e2
|
@ -33,7 +33,7 @@ class zulip::common {
|
|||
|
||||
$total_memory_mb = Integer($::memorysize_mb)
|
||||
|
||||
$goarch = $::architecture ? {
|
||||
$goarch = $::os['architecture'] ? {
|
||||
'amd64' => 'amd64',
|
||||
'aarch64' => 'arm64',
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue