summaryrefslogtreecommitdiff
path: root/manifests/instance.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-12 17:12:53 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-12 17:12:53 -0300
commit61229cbadb2e29ebca29ebac0f7495c197f17f95 (patch)
treead4d7e7c788ecdf87b44a3aac8d487951ffe67f6 /manifests/instance.pp
downloadpuppet-schroot-61229cbadb2e29ebca29ebac0f7495c197f17f95.tar.gz
puppet-schroot-61229cbadb2e29ebca29ebac0f7495c197f17f95.tar.bz2
Initial import
Diffstat (limited to 'manifests/instance.pp')
-rw-r--r--manifests/instance.pp18
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/instance.pp b/manifests/instance.pp
new file mode 100644
index 0000000..289e060
--- /dev/null
+++ b/manifests/instance.pp
@@ -0,0 +1,18 @@
+define schroot::instance(
+ $description,
+ $directory,
+ $users,
+ $groups,
+ $aliases,
+ $ensure = present
+ $instance_type = 'plain',
+) {
+ file { "/etc/schroot/chroot.d/${name}":
+ ensure => $ensure,
+ owner => root,
+ group => root,
+ mode => 0644,
+ require => Package['schroot'],
+ content => template('schroot/schroot.conf.erb'),
+ }
+}