historical mirror: make rsyncd.conf a template
authorPeter Palfrader <peter@palfrader.org>
Tue, 12 Sep 2017 09:49:15 +0000 (09:49 +0000)
committerPeter Palfrader <peter@palfrader.org>
Tue, 12 Sep 2017 09:49:15 +0000 (09:49 +0000)
modules/roles/files/historical_mirror/rsyncd.conf [deleted file]
modules/roles/manifests/historical_mirror.pp
modules/roles/templates/historical_mirror/rsyncd.conf.erb [new file with mode: 0644]

diff --git a/modules/roles/files/historical_mirror/rsyncd.conf b/modules/roles/files/historical_mirror/rsyncd.conf
deleted file mode 100644 (file)
index 48438f1..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-uid = nobody
-gid = nogroup
-syslog facility = daemon
-socket options = SO_KEEPALIVE
-reverse lookup = false
-timeout = 7200
-log file = /var/log/rsyncd/rsyncd-archive.log
-
-[debian-archive]
-  path = /srv/mirrors/debian-archive
-  comment = Debian Historical Archives (use -H to save space)
-  read only = true
-
-[archive]
-  path = /srv/mirrors/debian-archive
-  comment = Debian Archive (use -H to save space)
-  read only = true
-  list = no
index b6fc700..eb3230a 100644 (file)
@@ -34,7 +34,7 @@ class roles::historical_mirror {
        }
 
        rsync::site { 'archive':
-               source      => 'puppet:///modules/roles/historical_mirror/rsyncd.conf',
+               content     => template('roles/historical_mirror/rsyncd.conf.erb'),
                max_clients => 100,
                sslname     => $sslname,
                binds       => $binds,
diff --git a/modules/roles/templates/historical_mirror/rsyncd.conf.erb b/modules/roles/templates/historical_mirror/rsyncd.conf.erb
new file mode 100644 (file)
index 0000000..48438f1
--- /dev/null
@@ -0,0 +1,18 @@
+uid = nobody
+gid = nogroup
+syslog facility = daemon
+socket options = SO_KEEPALIVE
+reverse lookup = false
+timeout = 7200
+log file = /var/log/rsyncd/rsyncd-archive.log
+
+[debian-archive]
+  path = /srv/mirrors/debian-archive
+  comment = Debian Historical Archives (use -H to save space)
+  read only = true
+
+[archive]
+  path = /srv/mirrors/debian-archive
+  comment = Debian Archive (use -H to save space)
+  read only = true
+  list = no