Revert "rsync::site dependency cleanup, part 1"
authorPeter Palfrader <peter@palfrader.org>
Tue, 10 Sep 2019 07:30:58 +0000 (09:30 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 10 Sep 2019 07:32:31 +0000 (09:32 +0200)
This reverts commit e18adfd6c665a99d3e5cde12b9cac516c39bda6b.

The commit contained unrelated changes.  Will re-commit the relevant
ones soon.

modules/roles/templates/snapshot/rsyncd.conf.erb [new file with mode: 0644]
modules/rsync/manifests/site.pp

diff --git a/modules/roles/templates/snapshot/rsyncd.conf.erb b/modules/roles/templates/snapshot/rsyncd.conf.erb
new file mode 100644 (file)
index 0000000..67564c9
--- /dev/null
@@ -0,0 +1,32 @@
+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
index 45836df..c762d6d 100644 (file)
@@ -46,14 +46,17 @@ define rsync::site (
                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"],
                ],