vars need a $
[mirror/dsa-puppet.git] / modules / roles / manifests / syncproxy.pp
index 9a988d0..bf19bd0 100644 (file)
@@ -1,14 +1,23 @@
 class roles::syncproxy {
+       $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 ? {
+               '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':
-               source => 'puppet:///modules/roles/syncproxy/rsyncd.conf',
-               bind   => $::hostname ? {
-                       'milanollo' => '5.153.231.9',
-                       default => ''
-               },
-               bind6   => $::hostname ? {
-                       'milanollo' => '2001:41c8:1000:21::21:9',
-                       default => ''
-               },
+               content => template('roles/syncproxy/rsyncd.conf.erb'),
+               bind    => $bind,
+               bind6   => $bind6,
        }
 
        file { '/etc/rsyncd':