-template "/etc/replication/changesets.conf" do
- source "changesets.conf.erb"
- user "root"
- group "planet"
- mode "640"
- variables :password => db_passwords["planetdiff"]
-end
-
-template "/etc/replication/users-agreed.conf" do
- source "users-agreed.conf.erb"
- user "planet"
- group "planet"
- mode "600"
- variables :password => db_passwords["planetdiff"]
-end
-
-directory "/var/lib/replication/minute" do
- owner "planet"
- group "planet"
- mode "755"
-end
-
-directory "/var/lib/replication/hour" do
- owner "planet"
- group "planet"
- mode "755"
-end
-
-template "/var/lib/replication/hour/configuration.txt" do
- source "replication.config.erb"
- owner "planet"
- group "planet"
- mode "644"
- variables :base => "minute", :interval => 3600
-end
-
-link "/var/lib/replication/hour/data" do
- to "/store/planet/replication/hour"
-end
-
-directory "/var/lib/replication/day" do
- owner "planet"
- group "planet"
- mode "755"
-end
-
-template "/var/lib/replication/day/configuration.txt" do
- source "replication.config.erb"
- owner "planet"
- group "planet"
- mode "644"
- variables :base => "hour", :interval => 86400
-end
-
-link "/var/lib/replication/day/data" do
- to "/store/planet/replication/day"
-end