--- /dev/null
+uid = nobody
+gid = nogroup
+syslog facility = daemon
+socket options = SO_KEEPALIVE
+reverse lookup = false
+timeout = 7200
+log file = /var/log/rsyncd/rsyncd.log
+
+[snapshot-farm-1]
+ path = /storage/snapshot-farm-1
+ read only = true
+ list = false
+[snapshot-farm-2]
+ path = /storage/snapshot-farm-2
+ read only = true
+ list = false
+[snapshot-farm-3]
+ path = /storage/snapshot-farm-3
+ read only = true
+ list = false
+[snapshot-farm-4]
+ path = /storage/snapshot-farm-4
+ read only = true
+ list = false
+[snapshot-farm-09]
+ path = /storage/snapshot-farm-09
+ read only = true
+ list = false
+[snapshot-farm-10]
+ path = /storage/snapshot-farm-10
+ read only = true
+ list = false
owner => 'root',
group => 'root',
mode => '0444',
- notify => Exec['systemctl daemon-reload'],
+ notify => [
+ Exec['systemctl daemon-reload'],
+ Service["rsyncd-${name}.socket"],
+ ],
}
service { "rsyncd-${name}.socket":
ensure => $ensure_service,
enable => $ensure_enable,
- notify => Exec['systemctl daemon-reload'],
- subscribe => [
+ require => [
+ Exec['systemctl daemon-reload'],
File["/etc/systemd/system/rsyncd-${name}@.service"],
File["/etc/systemd/system/rsyncd-${name}.socket"],
],