From 0e9cdfc2693cb56d3cc8b262ef34e679ec11a482 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 21 Dec 2015 19:12:54 +0100 Subject: [PATCH] Set bind address for security rsync --- modules/roles/manifests/security_mirror.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/roles/manifests/security_mirror.pp b/modules/roles/manifests/security_mirror.pp index ac66599f8..eda789a82 100644 --- a/modules/roles/manifests/security_mirror.pp +++ b/modules/roles/manifests/security_mirror.pp @@ -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, } } -- 2.20.1