+++ /dev/null
-##
-## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
-## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
-##
-# This is a configuration file for /etc/init.d/schroot; it allows you
-# to perform common modifications to the behavior of schroot
-# initialization without editing the init script (and thus getting
-# prompted by dpkg on upgrades). Note that the defaults defined here
-# are not used when invoking the schroot command; to configure schroot
-# behaviour have a look at /etc/schroot/* and the schroot manual page
-# ("man schroot").
-
-# What do we want to do with "orphan" sessions when starting or
-# restarting? Recover them (leave empty or set to "recover") or just
-# end them (set to "end")?
-SESSIONS_RECOVER="end"
class buildd ($ensure=present) {
- $package_ensure = $ensure ? {
- present => installed,
- absent => $ensure
- }
+ include schroot
- package { 'schroot':
- ensure => $package_ensure,
- 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,
}
if $ensure == present {
- package { [
- 'debootstrap',
- 'dupload'
- ]:
+ package { 'dupload':
ensure => installed,
}
file { '/etc/dupload.conf':
- ensure => $ensure,
source => 'puppet:///modules/buildd/dupload.conf',
require => Package['dupload'],
}
- 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':
}
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/default/schroot':
- ensure => $ensure,
- source => 'puppet:///modules/buildd/default-schroot',
- require => Package['schroot']
- }
}
+++ /dev/null
-##
-## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
-## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
-##
-# mount.defaults: static file system information for chroots.
-# Note that the mount point will be prefixed by the chroot path
-# (CHROOT_PATH)
-#
-# <file system> <mount point> <type> <options> <dump> <pass>
-<% if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture') and scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0].start_with?('kfreebsd') -%>
-# kFreeBSD version
-proc /proc linprocfs defaults 0 0
-dev /dev devfs rw,bind 0 0
-dev /dev/fd fdescfs rw,bind 0 0
-sys /sys linsysfs defaults 0 0
-<% else -%>
-# Linux version
-proc /proc proc defaults 0 0
-/dev/pts /dev/pts none rw,bind 0 0
-tmpfs /dev/shm tmpfs defaults 0 0
-<% end %>
-
--- /dev/null
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+# This is a configuration file for /etc/init.d/schroot; it allows you
+# to perform common modifications to the behavior of schroot
+# initialization without editing the init script (and thus getting
+# prompted by dpkg on upgrades). Note that the defaults defined here
+# are not used when invoking the schroot command; to configure schroot
+# behaviour have a look at /etc/schroot/* and the schroot manual page
+# ("man schroot").
+
+# What do we want to do with "orphan" sessions when starting or
+# restarting? Recover them (leave empty or set to "recover") or just
+# end them (set to "end")?
+SESSIONS_RECOVER="end"
--- /dev/null
+class schroot {
+ package { 'schroot':
+ ensure => installed,
+ tag => extra_repo,
+ }
+ package { 'debootstrap':
+ ensure => installed,
+ }
+
+ file { '/etc/schroot/mount-defaults':
+ content => template('schroot/etc/schroot/mount-defaults.erb'),
+ require => Package['sbuild'],
+ }
+ file { '/etc/default/schroot':
+ source => 'puppet:///modules/schroot/default-schroot',
+ require => Package['schroot']
+ }
+}
--- /dev/null
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+# mount.defaults: static file system information for chroots.
+# Note that the mount point will be prefixed by the chroot path
+# (CHROOT_PATH)
+#
+# <file system> <mount point> <type> <options> <dump> <pass>
+<% if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture') and scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0].start_with?('kfreebsd') -%>
+# kFreeBSD version
+proc /proc linprocfs defaults 0 0
+dev /dev devfs rw,bind 0 0
+dev /dev/fd fdescfs rw,bind 0 0
+sys /sys linsysfs defaults 0 0
+<% else -%>
+# Linux version
+proc /proc proc defaults 0 0
+/dev/pts /dev/pts none rw,bind 0 0
+tmpfs /dev/shm tmpfs defaults 0 0
+<% end %>
+