Attempt to configure an apache vhost for a static component only if it exists on...
[mirror/dsa-puppet.git] / modules / roles / manifests / syncproxy.pp
1 class roles::syncproxy {
2         rsync::site { 'syncproxy':
3                 content => template('roles/syncproxy/rsyncd.conf.erb'),
4                 bind   => $::hostname ? {
5                         'milanollo' => '5.153.231.9',
6                         'mirror-isc' => '149.20.20.21',
7                         default => ''
8                 },
9                 bind6   => $::hostname ? {
10                         'milanollo' => '2001:41c8:1000:21::21:9',
11                         'mirror-isc' => '2001:4f8:8:36::1deb:21',
12                         default => ''
13                 },
14         }
15
16         file { '/etc/rsyncd':
17                 ensure => 'directory'
18         }
19
20         file { '/etc/rsyncd/debian.secrets':
21                 owner => 'root',
22                 group => 'mirroradm',
23                 mode => 0660,
24         }
25 }