From e66c073cdf3914dfb1064d4c1c87affae7b33314 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 8 Jan 2016 21:34:01 +0100 Subject: [PATCH] move bind addresses to vars --- modules/roles/manifests/syncproxy.pp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/modules/roles/manifests/syncproxy.pp b/modules/roles/manifests/syncproxy.pp index 4a1ba18b2..d8621bd5a 100644 --- a/modules/roles/manifests/syncproxy.pp +++ b/modules/roles/manifests/syncproxy.pp @@ -1,20 +1,23 @@ class roles::syncproxy { - rsync::site { 'syncproxy': - content => template('roles/syncproxy/rsyncd.conf.erb'), - bind => $::hostname ? { + $bind = $::hostname ? { 'milanollo' => '5.153.231.9', 'mirror-isc' => '149.20.20.21', 'mirror-umn' => '128.101.240.216', 'klecker' => '130.89.148.10', default => '' - }, - bind6 => $::hostname ? { + } + bind6 = $::hostname ? { 'milanollo' => '2001:41c8:1000:21::21:9', 'mirror-isc' => '2001:4f8:8:36::1deb:21', 'mirror-umn' => '2607:ea00:101:3c0b::1deb:216', 'klecker' => '2001:610:1908:b000::148:10', default => '' - }, + } + + rsync::site { 'syncproxy': + content => template('roles/syncproxy/rsyncd.conf.erb'), + bind => $bind, + bind6 => $bind6, } file { '/etc/rsyncd': -- 2.20.1