Move rsync ssl setup into the rsync module
[mirror/dsa-puppet.git] / modules / rsync / templates / rsyncd-stunnel.conf.erb
diff --git a/modules/rsync/templates/rsyncd-stunnel.conf.erb b/modules/rsync/templates/rsyncd-stunnel.conf.erb
new file mode 100644 (file)
index 0000000..f57d67a
--- /dev/null
@@ -0,0 +1,11 @@
+cert = /etc/ssl/debian/certs/<%= sslname %>.crt-chained
+key = /etc/ssl/private/<%= sslname %>.key
+
+debug = notice
+
+client = no
+socket = a:SO_LINGER=1:60
+socket = a:SO_KEEPALIVE=1
+
+exec = /usr/bin/rsync
+execargs = rsync --daemon --config=/etc/rsyncd-<%= name %>.conf