From 841fac76bbf794729e80699c849a751c22cbd208 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 13 Sep 2011 15:59:07 -0300 Subject: Adding fstab for schroot --- files/etc/schroot/default/fstab | 10 ++++++++++ manifests/subsystems/schroot.pp | 11 ++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 files/etc/schroot/default/fstab diff --git a/files/etc/schroot/default/fstab b/files/etc/schroot/default/fstab new file mode 100644 index 0000000..f4d890d --- /dev/null +++ b/files/etc/schroot/default/fstab @@ -0,0 +1,10 @@ +# fstab: static file system information for chroots. +# Note that the mount point will be prefixed by the chroot path +# (CHROOT_PATH) +# +# +/proc /proc none rw,rbind 0 0 +/sys /sys none rw,rbind 0 0 +/dev /dev none rw,rbind 0 0 +#/home /home none rw,bind 0 0 +/tmp /tmp none rw,bind 0 0 diff --git a/manifests/subsystems/schroot.pp b/manifests/subsystems/schroot.pp index acc0361..317fe35 100644 --- a/manifests/subsystems/schroot.pp +++ b/manifests/subsystems/schroot.pp @@ -3,8 +3,17 @@ class schroot { ensure => installed, } + file { '/etc/schroot/default/fstab': + ensure => $ensure, + owner => root, + mode => 0644, + require => Package['schroot'], + source => [ "puppet:///modules/site-nodo/etc/schroot/default/$fqdn/fstab", + "puppet:///modules/nodo/etc/schroot/default/fstab" ] + } + define instance($type = 'plain', description, $directory, $users, $groups, $aliases, $ensure = 'present') { - file { '/etc/schroot/schroot/chroot.d': + file { '/etc/schroot/chroot.d': ensure => $ensure, owner => root, mode => 0644, -- cgit v1.2.3