aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/schroot.pp
blob: 38a64832a5f7d5b261a081c64c2bfef02f461e7f (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
25
26
class schroot {
  package { 'schroot':
    ensure => installed,
  }

  file { '/etc/schroot/default/fstab':
    ensure  => $ensure,
    owner   => root,
    group   => 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,
      group   => root,
      mode    => 0644,
      require => Package['schroot'],
      content => template('nodo/schroot/schroot.conf.erb'),
    }
  }
}