aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/schroot.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystems/schroot.pp')
-rw-r--r--manifests/subsystems/schroot.pp14
1 files changed, 8 insertions, 6 deletions
diff --git a/manifests/subsystems/schroot.pp b/manifests/subsystems/schroot.pp
index d6c4c13..acc0361 100644
--- a/manifests/subsystems/schroot.pp
+++ b/manifests/subsystems/schroot.pp
@@ -3,11 +3,13 @@ class schroot {
ensure => installed,
}
- file { '/etc/schroot/schroot.conf':
- ensure => present,
- owner => root,
- mode => 0644,
- require => Package['schroot'],
- source => "puppet:///modules/site-nodo/schroot/$fqdn/schroot.conf",
+ define instance($type = 'plain', description, $directory, $users, $groups, $aliases, $ensure = 'present') {
+ file { '/etc/schroot/schroot/chroot.d':
+ ensure => $ensure,
+ owner => root,
+ mode => 0644,
+ require => Package['schroot'],
+ content => template('nodo/schroot/schroot.conf.erb'),
+ }
}
}