Limit nfs firewall ports to certain ranges
[mirror/dsa-puppet.git] / modules / porterbox / manifests / init.pp
1 class porterbox {
2         include schroot
3         # FIXME: Refactor this to a common class when something else needs it
4         package { 'moreutils':
5                 ensure => installed
6         }
7
8         file { '/etc/schroot/dsa':
9                 ensure => directory,
10                 require => Package['schroot'],
11         }
12         file { '/etc/schroot/dsa/config':
13                 source  => 'puppet:///modules/porterbox/schroot-dsa/config',
14         }
15         if ! ($::debarchitecture in ['kfreebsd-amd64', 'kfreebsd-i386']) {
16                 file { '/etc/schroot/dsa/fstab':
17                         source  => 'puppet:///modules/porterbox/schroot-dsa/fstab',
18                 }
19         } else {
20                 file { '/etc/schroot/dsa/fstab':
21                         source  => 'puppet:///modules/porterbox/schroot-dsa/fstab-freebsd',
22                 }
23         }
24         file { '/etc/schroot/dsa/default-mirror':
25                 content => template('porterbox/default-mirror.erb'),
26         }
27         file { '/etc/schroot/setup.d/99porterbox-extra-apt-options':
28                 mode    => '0555',
29                 source  => 'puppet:///modules/porterbox/schroot-setup.d/99porterbox-extra-apt-options',
30                 require => Package['schroot'],
31         }
32         file { '/etc/schroot/setup.d/99porterbox-extra-sources':
33                 mode    => '0555',
34                 source  => 'puppet:///modules/porterbox/schroot-setup.d/99porterbox-extra-sources',
35                 require => Package['schroot'],
36         }
37         file { '/usr/local/bin/dd-schroot-cmd':
38                 mode    => '0555',
39                 source  => 'puppet:///modules/porterbox/dd-schroot-cmd',
40         }
41         file { '/usr/local/bin/schroot-list-sessions':
42                 mode    => '0555',
43                 source  => 'puppet:///modules/porterbox/schroot-list-sessions',
44         }
45         file { '/usr/local/sbin/setup-dchroot':
46                 mode    => '0555',
47                 source  => 'puppet:///modules/porterbox/setup-dchroot',
48         }
49         file { '/usr/local/sbin/setup-all-dchroots':
50                 mode    => '0555',
51                 source  => 'puppet:///modules/porterbox/setup-all-dchroots',
52         }
53         file { '/etc/cron.d/puppet-update-dchroots':
54                 content  => "0 15 * * 0 root PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin chronic setup-all-dchroots\n",
55         }
56         file { '/etc/cron.weekly/puppet-mail-big-homedirs':
57                 mode    => '0555',
58                 source  => 'puppet:///modules/porterbox/mail-big-homedirs',
59         }
60 }