X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/40851f9e0d229e00f1699a913d9b29a95ae4c496..3369f9515111a99387cda562a342f94ea1a13778:/cookbooks/planet/recipes/replication.rb?ds=inline diff --git a/cookbooks/planet/recipes/replication.rb b/cookbooks/planet/recipes/replication.rb index 770d52c7c..b23c00f36 100644 --- a/cookbooks/planet/recipes/replication.rb +++ b/cookbooks/planet/recipes/replication.rb @@ -1,8 +1,8 @@ # -# Cookbook Name:: planet +# Cookbook:: planet # Recipe:: dump # -# Copyright 2013, OpenStreetMap Foundation +# Copyright:: 2013, OpenStreetMap Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ # limitations under the License. # +include_recipe "accounts" include_recipe "osmosis" db_passwords = data_bag_item("db", "passwords") @@ -27,11 +28,11 @@ package "ruby" package "ruby-dev" package "ruby-libxml" -package "libpq-dev" -gem_package "pg" - package "make" package "gcc" +package "libpq-dev" + +gem_package "pg" remote_directory "/opt/flush" do source "flush" @@ -76,6 +77,16 @@ template "/usr/local/bin/users-deleted" do mode 0o755 end +remote_directory "/store/planet/users_deleted" do + source "users_deleted" + owner "planet" + group "planet" + mode 0o755 + files_owner "root" + files_group "root" + files_mode 0o644 +end + remote_directory "/store/planet/replication" do source "replication-cgi" owner "root"