aboutsummaryrefslogtreecommitdiffstats
path: root/modules/bcd/manifests/init.pp
blob: 44fbbbf3e8b029e96dac76c40dd0772d85d36161 (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
30
31
32
class bcd {
    class variable {
        $bcd_login = 'bcd'
        $bcd_home = '/home/bcd'
	$isomakers_group = 'mga-iso_makers'
    }

    class base inherits variable {
	include sudo

        buildsystem::sshuser { $bcd_login:
            homedir => $bcd_home,
            comment => "User for creating ISOs",
	}

        package { bcd:
	    ensure => 'installed',
        }

        sudo::sudoers_config { "bcd":
	    content => template("bcd/sudoers.bcd")
        }

	file { "/var/lib/bcd":
	    ensure => directory,
	    owner => $bcd_login,
	    group => $bcd_login,
	    mode => 755,
	}

    }
}