From: Peter Palfrader Date: Mon, 21 Dec 2015 18:12:54 +0000 (+0100) Subject: Set bind address for security rsync X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=0e9cdfc2693cb56d3cc8b262ef34e679ec11a482;p=mirror%2Fdsa-puppet.git Set bind address for security rsync --- 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, } }