mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
puppet: Switch from $::architecture to non-legacy $::os.
This commit is contained in:
committed by
Alex Vandiver
parent
d7e8733705
commit
a787ebe0e2
@@ -33,7 +33,7 @@ class zulip::common {
|
|||||||
|
|
||||||
$total_memory_mb = Integer($::memorysize_mb)
|
$total_memory_mb = Integer($::memorysize_mb)
|
||||||
|
|
||||||
$goarch = $::architecture ? {
|
$goarch = $::os['architecture'] ? {
|
||||||
'amd64' => 'amd64',
|
'amd64' => 'amd64',
|
||||||
'aarch64' => 'arm64',
|
'aarch64' => 'arm64',
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ define zulip::external_dep(
|
|||||||
) {
|
) {
|
||||||
if $sha256 == '' {
|
if $sha256 == '' {
|
||||||
if $zulip::common::versions[$title]['sha256'] =~ Hash {
|
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 {
|
if $sha256_filled == undef {
|
||||||
err("No sha256 found for ${title} for architecture ${::architecture}")
|
err("No sha256 found for ${title} for architecture ${::os['architecture']}")
|
||||||
fail()
|
fail()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user