/[adm]/puppet/modules/bcd/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/bcd/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2556 - (show annotations) (download)
Sat Mar 17 10:40:08 2012 UTC (8 years, 2 months ago) by misc
File size: 1538 byte(s)
fix user creation

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 class web inherits base {
45 apache::vhost_base { "bcd.$domain":
46 location => "$bcd_home/public_html",
47 content => template('bcd/vhost_bcd.conf'),
48 }
49 file {"htaccess":
50 path => "$bcd_home/public_html/.htaccess",
51 ensure => present,
52 owner => bcd,
53 group => bcd,
54 mode => 755,
55 content => template("bcd/.htaccess")
56 }
57 file {"htpasswd":
58 path => "$bcd_home/public_html/.htpasswd",
59 ensure => present,
60 owner => bcd,
61 group => bcd,
62 mode => 755,
63 content => template("bcd/.htpasswd")
64 }
65 }
66
67 class rsync inherits base {
68 class { rsyncd:
69 rsyncd_conf => 'bcd/rsyncd.conf'
70 }
71 }
72 }

  ViewVC Help
Powered by ViewVC 1.1.28