From cb1785a14eb483d78e81ff8fd9e5ee204002494d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 13 Sep 2011 15:51:59 -0300 Subject: Adding schroot::instance --- manifests/subsystems/schroot.pp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'manifests/subsystems') 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'), + } } } -- cgit v1.2.3