diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 15 | ||||
-rw-r--r-- | manifests/instance.pp | 18 |
2 files changed, 33 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp new file mode 100644 index 0000000..dae71db --- /dev/null +++ b/manifests/init.pp @@ -0,0 +1,15 @@ +class schroot { + package { 'schroot': + ensure => installed, + } + + file { '/etc/schroot/default/fstab': + ensure => present, + owner => root, + group => root, + mode => 0644, + require => Package['schroot'], + source => [ "puppet:///modules/site_schroot/default/${::fqdn}/fstab", + "puppet:///modules/schroot/default/fstab" ] + } +} 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'), + } +} |