aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/etc/schroot/default/fstab10
-rw-r--r--manifests/subsystems/schroot.pp11
2 files changed, 20 insertions, 1 deletions
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)
+#
+# <file system> <mount point> <type> <options> <dump> <pass>
+/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,