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 site::aptrepo { 'buildd.debian.org-proposed':
50 ensure => $::hostname ? {
51 /^(alkman|barber|brahms|porpora|zandonai)$/ => 'present',
54 url => 'https://buildd.debian.org/apt/',
55 suite => "${suite}-proposed",
57 require => Package['apt-transport-https'],
60 #site::aptrepo { 'buildd.debian.org-experimental':
61 # ensure => $::hostname ? {
62 # /^(xxxx)$/ => 'present',
63 # default => 'absent',
65 # url => 'https://buildd.debian.org/apt/',
66 # suite => "${suite}-experimental",
67 # components => 'main',
68 # require => Package['apt-transport-https'],
72 file { '/etc/apt/preferences.d/buildd.debian.org':
75 file { '/etc/apt/preferences.d/buildd':
78 file { '/etc/cron.d/dsa-buildd':
79 source => 'puppet:///modules/buildd/cron.d-dsa-buildd',
80 require => Package['debian.org']
83 if ($::lsbmajdistrelease >= 7 and $::kernel == 'Linux') {
84 package { 'python-psutil':
87 file { '/usr/local/sbin/buildd-schroot-aptitude-kill':
88 source => 'puppet:///modules/buildd/buildd-schroot-aptitude-kill',
92 file { '/usr/local/sbin/buildd-schroot-aptitude-kill':
93 source => 'puppet:///modules/buildd/buildd-schroot-aptitude-kill.squeeze',
97 file { '/etc/cron.d/puppet-buildd-aptitude':
98 content => "*/5 * * * * root /usr/local/sbin/buildd-schroot-aptitude-kill\n",