aboutsummaryrefslogtreecommitdiffstats
path: root/modules/bcd/manifests/base.pp
blob: d515f3e11a8fd0c06d91247bb97dd27f09e1432f (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
27
28
29
class bcd::base {
    include sudo
    include bcd

    group { $bcd::login: }

    user { $bcd::login:
        home       => $bcd::home,
        comment    => 'User for creating ISOs',
    }

    file { [$bcd::public_isos, '/var/lib/bcd']:
        ensure => directory,
        owner  => $bcd::login,
        group  => $bcd::login,
        mode   => '0755',
    }

    # svn version is used for now
    #package { bcd: }

    # needed for qemu-over ssh
    package { 'xauth': }

    $isomakers_group = 'mga-iso_makers'
    sudo::sudoers_config { 'bcd':
        content => template('bcd/sudoers.bcd')
    }
}