mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +00:00
puppet: Include go version in go-camo release information.
This commit is contained in:
committed by
Tim Abbott
parent
232fe495be
commit
b2c3f5e510
@@ -7,12 +7,13 @@ class zulip::camo (String $listen_address = '0.0.0.0') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$version = $zulip::common::versions['go-camo']['version']
|
$version = $zulip::common::versions['go-camo']['version']
|
||||||
|
$goversion = $zulip::common::versions['go-camo']['goversion']
|
||||||
$dir = "/srv/zulip-go-camo-${version}"
|
$dir = "/srv/zulip-go-camo-${version}"
|
||||||
$bin = "${dir}/bin/go-camo"
|
$bin = "${dir}/bin/go-camo"
|
||||||
|
|
||||||
zulip::external_dep { 'go-camo':
|
zulip::external_dep { 'go-camo':
|
||||||
version => $version,
|
version => $version,
|
||||||
url => "https://github.com/cactus/go-camo/releases/download/v${version}/go-camo-${version}.go1171.linux-${::architecture}.tar.gz",
|
url => "https://github.com/cactus/go-camo/releases/download/v${version}/go-camo-${version}.go${goversion}.linux-${::architecture}.tar.gz",
|
||||||
tarball_prefix => "go-camo-${version}",
|
tarball_prefix => "go-camo-${version}",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,8 +41,9 @@ class zulip::common {
|
|||||||
$versions = {
|
$versions = {
|
||||||
# https://github.com/cactus/go-camo/releases
|
# https://github.com/cactus/go-camo/releases
|
||||||
'go-camo' => {
|
'go-camo' => {
|
||||||
'version' => '2.3.0',
|
'version' => '2.3.0',
|
||||||
'sha256' => {
|
'goversion' => '1171',
|
||||||
|
'sha256' => {
|
||||||
'amd64' => '965506e6edb9d974c810519d71e847afb7ca69d1d01ae7d8be6d7a91de669c0c',
|
'amd64' => '965506e6edb9d974c810519d71e847afb7ca69d1d01ae7d8be6d7a91de669c0c',
|
||||||
'aarch64' => '40463f6790eb0d2da69ad6a902fcc4c6b0c0ac24106a6c28fbfce9dfa4cb15cd',
|
'aarch64' => '40463f6790eb0d2da69ad6a902fcc4c6b0c0ac24106a6c28fbfce9dfa4cb15cd',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user