+## Users replication
+
+template "/etc/replication/users-agreed.conf" do
+ source "users-agreed.conf.erb"
+ user "planet"
+ group "planet"
+ mode "600"
+ variables :password => db_passwords["planetdiff"]
+end
+
+## Changeset replication
+
+directory "/store/planet/replication/changesets" do
+ owner "planet"
+ group "planet"
+ mode "755"
+end
+
+template "/etc/replication/changesets.conf" do
+ source "changesets.conf.erb"
+ user "root"
+ group "planet"
+ mode "640"
+ variables :password => db_passwords["planetdiff"]
+end
+
+## Minutely replication
+