aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/schroot.pp
blob: 317fe3590d8b98ade33b8da09ebf56fb4e668e00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class schroot {
  package { '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/chroot.d':
      ensure  => $ensure,
      owner   => root,
      mode    => 0644,
      require => Package['schroot'],
      content => template('nodo/schroot/schroot.conf.erb'),
    }
  }
}