Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

puppet: Factor out wal-g binary path.

Alex Vandiver53cc9538f7dd
diff --git a/puppet/zulip/manifests/postgresql_backups.pp b/puppet/zulip/manifests/postgresql_backups.pp
index 8a729373d33..ee00f0eb29d 100644
--- a/puppet/zulip/manifests/postgresql_backups.pp
+++ b/puppet/zulip/manifests/postgresql_backups.pp
@@ -4,17 +4,18 @@ class zulip::postgresql_backups {
include zulip::postgresql_common
$wal_g_version = '1.1.1'
+ $bin = "/usr/local/bin/wal-g-${wal_g_version}"
$package = 'wal-g-pg-ubuntu-20.04-amd64'
zulip::sha256_tarball_to { 'wal-g':
url => "https://github.com/wal-g/wal-g/releases/download/v${wal_g_version}/${package}.tar.gz",
sha256 => '159e66a8e70254783a6a16676f1a663c795950e7e6f526726411a5111a520d1a',
install => {
- $package => "/usr/local/bin/wal-g-${wal_g_version}",
+ $package => $bin,
},
}
file { '/usr/local/bin/wal-g':
ensure => 'link',
- target => "/usr/local/bin/wal-g-${wal_g_version}",
+ target => $bin,
require => Zulip::Sha256_tarball_to['wal-g'],
}
file { '/usr/local/bin/env-wal-g':