Note that exim contains tracker-specific configuration
[mirror/dsa-puppet.git] / modules / roles / manifests / archvsync_base.pp
1 # this is pulled in by *-mirror or syncproxy roles
2 # in ensures the archvsync user has a home, and
3 # that mirrormaster can ssh to it
4 class roles::archvsync_base {
5   file { '/srv/mirrors':
6     ensure => directory,
7     owner  => root,
8     group  => 'archvsync',
9     mode   => '0775',
10   }
11
12   file { '/srv/mirrors/.nobackup':
13     ensure  => present,
14     content => '',
15   }
16
17   file { '/etc/ssh/userkeys/archvsync':
18     ensure => 'link',
19     target => '/home/archvsync/.ssh/authorized_keys',
20   }
21
22   Ferm::Rule::Simple <<| tag == 'ssh::server::to::archvsync' |>>
23 }