X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7b4e373a485d44870c2118a7e473f76641a26159..66c8810de3626826ca758bf47b0def637254c97c:/cookbooks/planet/recipes/replication.rb diff --git a/cookbooks/planet/recipes/replication.rb b/cookbooks/planet/recipes/replication.rb index d9ff9b67c..25fe9671d 100644 --- a/cookbooks/planet/recipes/replication.rb +++ b/cookbooks/planet/recipes/replication.rb @@ -30,6 +30,28 @@ package "ruby-libxml" package "libpq-dev" gem_package "pg" +package "make" +package "gcc" + +remote_directory "/opt/flush" do + source "flush" + owner "root" + group "root" + mode 0o755 + files_owner "root" + files_group "root" + files_mode 0o755 +end + +execute "/opt/flush/Makefile" do + action :nothing + command "make" + cwd "/opt/flush" + user "root" + group "root" + subscribes :run, "remote_directory[/opt/flush]" +end + remote_directory "/usr/local/bin" do source "replication-bin" owner "root"