X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fschroot%2Fmanifests%2Finit.pp;h=14bb914552a96e150431fddbb165931681569ec8;hb=403354df3f5b6c760daac0f35634cf7eb36aad12;hp=731fd5b533d46cb38d5d1be5490dcdba1aa28585;hpb=466e1e24308653c714e81454a638695109f4c063;p=mirror%2Fdsa-puppet.git diff --git a/modules/schroot/manifests/init.pp b/modules/schroot/manifests/init.pp index 731fd5b53..14bb91455 100644 --- a/modules/schroot/manifests/init.pp +++ b/modules/schroot/manifests/init.pp @@ -33,6 +33,22 @@ class schroot { source => 'puppet:///modules/schroot/schroot-setup.d/99porterbox-extra-sources', require => Package['schroot'], } + if ($::lsbmajdistrelease >= 8) { + file { '/etc/schroot/setup.d/99builddsourceslist': + mode => '0555', + source => 'puppet:///modules/schroot/schroot-setup.d/99builddsourceslist', + require => Package['schroot'], + } + } + + file { '/usr/local/sbin/setup-dchroot': + mode => '0555', + source => 'puppet:///modules/schroot/setup-dchroot', + } + file { '/usr/local/sbin/setup-all-dchroots': + mode => '0555', + source => 'puppet:///modules/schroot/setup-all-dchroots', + } file { '/etc/schroot/dsa': ensure => directory, @@ -48,4 +64,16 @@ class schroot { content => template('schroot/schroot-dsa/fstab.erb'), require => Package['schroot'], } + + file { '/etc/schroot/buildd/fstab': + content => template('schroot/schroot-buildd/fstab.erb'), + require => Package['schroot'], + } + + if $has_srv_buildd { + file { '/etc/schroot/buildd/config': + content => "CHROOT_FILE_UNPACK_DIR=/srv/buildd/unpack\n", + require => Package['schroot'], + } + } }