Set bind address for security rsync
authorPeter Palfrader <peter@palfrader.org>
Mon, 21 Dec 2015 18:12:54 +0000 (19:12 +0100)
committerPeter Palfrader <peter@palfrader.org>
Mon, 21 Dec 2015 18:12:54 +0000 (19:12 +0100)
modules/roles/manifests/security_mirror.pp

index ac66599..eda789a 100644 (file)
@@ -1,4 +1,12 @@
 class roles::security_mirror {
+       $rsync_bind = $::hostname ? {
+               mirror-isc => '149.20.20.19'
+               default    => '',
+       }
+       $rsync_bind6 = $::hostname ? {
+               mirror-isc => '2001:4f8:8:36::1deb:19'
+               default    => '',
+       }
 
        include apache2::cache
        apache2::site { '010-security.debian.org':
@@ -17,5 +25,7 @@ class roles::security_mirror {
        rsync::site { 'security':
                source      => 'puppet:///modules/roles/security_mirror/rsyncd.conf',
                max_clients => 100,
+               bind        => $rsync_bind,
+               bind6       => $rsync_bind6,
        }
 }