]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/db/recipes/base.rb
Install wal-g on database servers
[chef.git] / cookbooks / db / recipes / base.rb
index 617392701f955f0c31a96f543be0683a4c72b447..280e2d6fe0908af5a7500838aec3ab7402b6425e 100644 (file)
@@ -146,3 +146,19 @@ template "/usr/local/bin/openstreetmap-wal-e" do
   mode "750"
   variables :s3_key => wal_secrets["s3_key"]
 end
+
+remote_file "/usr/local/bin/wal-g" do
+  action :create
+  source "https://github.com/wal-g/wal-g/releases/download/v1.1/wal-g-pg-ubuntu-20.04-amd64"
+  owner "root"
+  group "root"
+  mode "755"
+end
+
+template "/usr/local/bin/openstreetmap-wal-g" do
+  source "wal-g.erb"
+  owner "root"
+  group "postgres"
+  mode "750"
+  variables :s3_key => wal_secrets["s3_key"]
+end