Parent Directory | Revision Log
split web class into a module, and clean it
1 | class bcd { |
2 | class variable { |
3 | $bcd_login = 'bcd' |
4 | $bcd_home = '/home/bcd' |
5 | $public_isos = "$bcd_home/public_html/isos" |
6 | $isomakers_group = 'mga-iso_makers' |
7 | } |
8 | |
9 | class base inherits variable { |
10 | include sudo |
11 | |
12 | group { $bcd_login: } |
13 | |
14 | user { $bcd_login: |
15 | home => $bcd_home, |
16 | managehome => true, |
17 | comment => "User for creating ISOs", |
18 | } |
19 | |
20 | file { $public_isos: |
21 | ensure => directory, |
22 | owner => $bcd_login, |
23 | group => $bcd_login, |
24 | mode => 755, |
25 | } |
26 | |
27 | #package { bcd: |
28 | # ensure => 'installed', |
29 | #} |
30 | |
31 | sudo::sudoers_config { "bcd": |
32 | content => template("bcd/sudoers.bcd") |
33 | } |
34 | |
35 | file { "/var/lib/bcd": |
36 | ensure => directory, |
37 | owner => $bcd_login, |
38 | group => $bcd_login, |
39 | mode => 755, |
40 | } |
41 | |
42 | } |
43 | |
44 | } |
ViewVC Help | |
Powered by ViewVC 1.1.30 |