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']