1 class buildd ($ensure=present) {
9 package { 'libsbuild-perl':
12 before => Package['sbuild']
15 package { 'apt-transport-https':
18 if $ensure == present {
22 file { '/etc/dupload.conf':
23 source => 'puppet:///modules/buildd/dupload.conf',
24 require => Package['dupload'],
26 site::linux_module { 'dm_snapshot': }
27 ferm::module { 'nf_conntrack_ftp': }
30 site::aptrepo { 'buildd':
34 $suite = $::lsbdistcodename ? {
35 squeeze => $::lsbdistcodename,
36 wheezy => $::lsbdistcodename,
41 site::aptrepo { 'buildd.debian.org':
42 key => 'puppet:///modules/buildd/buildd.debian.org.asc',
43 url => 'https://buildd.debian.org/apt/',
46 require => Package['apt-transport-https'],
49 if $::hostname in [alkman,porpora,zandonai] {
50 site::aptrepo { 'buildd.debian.org-proposed':
51 url => 'https://buildd.debian.org/apt/',
52 suite => "${suite}-proposed",
54 require => Package['apt-transport-https'],
58 if $::hostname in [krenek] {
59 site::aptrepo { 'buildd.debian.org-experimental':
60 url => 'https://buildd.debian.org/apt/',
61 suite => "${suite}-experimental",
63 require => Package['apt-transport-https'],
68 file { '/etc/apt/preferences.d/buildd.debian.org':
71 file { '/etc/apt/preferences.d/buildd':
72 content => template('buildd/etc/apt/preferences.d/buildd'),
73 before => Site::Aptrepo['buildd.debian.org']
75 file { '/etc/cron.d/dsa-buildd':
76 source => 'puppet:///modules/buildd/cron.d-dsa-buildd',
77 require => Package['debian.org']
80 if $::lsbmajdistrelease >= 7 {
81 package { 'python-psutil':
84 file { '/usr/local/sbin/buildd-schroot-aptitude-kill':
85 source => 'puppet:///modules/buildd/buildd-schroot-aptitude-kill',
89 file { '/usr/local/sbin/buildd-schroot-aptitude-kill':
90 source => 'puppet:///modules/buildd/buildd-schroot-aptitude-kill.squeeze',
94 file { '/etc/cron.d/puppet-buildd-aptitude':
95 content => "*/5 * * * * root /usr/local/sbin/buildd-schroot-aptitude-kill\n",