mode "755"
end
+directory "/store/replication" do
+ owner "planet"
+ group "planet"
+ mode "755"
+end
+
+directory "/store/replication/minute" do
+ owner "planet"
+ group "planet"
+ mode "755"
+end
+
systemd_tmpfile "/run/replication" do
type "d"
owner "planet"
},
"log_dir" => "/var/lib/replication/minute",
"changes_dir" => "/store/planet/replication/test/minute",
- "tmp_dir" => "/tmp",
+ "tmp_dir" => "/store/replication/minute",
"run_dir" => "/run/replication"
}
no_new_privileges true
end
+systemd_timer "replication-minutely" do
+ description "Minutely replication"
+ on_boot_sec 60
+ on_unit_active_sec 60
+end
+
template "/etc/replication/changesets.conf" do
source "changesets.conf.erb"
user "root"
mailto "zerebubuth@gmail.com"
end
- systemd_timer "replication-minutely" do
- description "Minutely replication"
- on_boot_sec 60
- on_unit_active_sec 60
+ service "replication-minutely.timer" do
+ action [:enable, :start]
end
cron_d "replication-minutely" do
action :delete
end
+ service "replication-minutely.timer" do
+ action [:stop, :disable]
+ end
+
cron_d "replication-minutely" do
action :delete
end