-class buildd ($ensure=present) {
-
- $package_ensure = $ensure ? {
- present => installed,
- absent => $ensure
- }
+class buildd {
package { 'schroot':
- ensure => $package_ensure,
+ ensure => installed,
tag => extra_repo,
}
package { 'sbuild':
- ensure => $package_ensure,
+ ensure => installed,
tag => extra_repo,
}
package { 'libsbuild-perl':
- ensure => $package_ensure,
+ ensure => installed,
tag => extra_repo,
before => Package['sbuild']
}
package { 'apt-transport-https':
- ensure => $package_ensure,
+ ensure => installed,
}
package { [
'debootstrap',
ensure => installed,
}
- site::linux_module { 'dm_snapshot':
- ensure => $ensure
- }
- ferm::module { 'nf_conntrack_ftp':
- ensure => $ensure
- }
+ site::linux_module { 'dm_snapshot': }
+ ferm::module { 'nf_conntrack_ftp': }
site::aptrepo { 'buildd':
ensure => absent,
}
site::aptrepo { 'buildd.debian.org':
- ensure => $ensure,
key => 'puppet:///modules/buildd/buildd.debian.org.asc',
url => 'https://buildd.debian.org/apt/',
suite => $suite,
ensure => absent,
}
file { '/etc/apt/preferences.d/buildd':
- ensure => $ensure,
content => template('buildd/etc/apt/preferences.d/buildd'),
before => Site::Aptrepo['buildd.debian.org']
}
file { '/etc/schroot/mount-defaults':
- ensure => $ensure,
content => template('buildd/etc/schroot/mount-defaults.erb'),
require => Package['sbuild'],
}
file { '/etc/cron.d/dsa-buildd':
- ensure => $ensure,
source => 'puppet:///modules/buildd/cron.d-dsa-buildd',
require => Package['debian.org']
}
file { '/etc/dupload.conf':
- ensure => $ensure,
source => 'puppet:///modules/buildd/dupload.conf',
require => Package['dupload'],
}
file { '/etc/default/schroot':
- ensure => $ensure,
source => 'puppet:///modules/buildd/default-schroot',
require => Package['schroot']
}
+
}