vars need a $
[mirror/dsa-puppet.git] / modules / roles / manifests / syncproxy.pp
1 class roles::syncproxy {
2         $bind = $::hostname ? {
3                 'milanollo' => '5.153.231.9',
4                 'mirror-isc' => '149.20.20.21',
5                 'mirror-umn' => '128.101.240.216',
6                 'klecker' => '130.89.148.10',
7                 default => ''
8         }
9         $bind6 = $::hostname ? {
10                 'milanollo' => '2001:41c8:1000:21::21:9',
11                 'mirror-isc' => '2001:4f8:8:36::1deb:21',
12                 'mirror-umn' => '2607:ea00:101:3c0b::1deb:216',
13                 'klecker' => '2001:610:1908:b000::148:10',
14                 default => ''
15         }
16
17         rsync::site { 'syncproxy':
18                 content => template('roles/syncproxy/rsyncd.conf.erb'),
19                 bind    => $bind,
20                 bind6   => $bind6,
21         }
22
23         file { '/etc/rsyncd':
24                 ensure => 'directory'
25         }
26
27         file { '/etc/rsyncd/debian.secrets':
28                 owner => 'root',
29                 group => 'mirroradm',
30                 mode => 0660,
31         }
32 }