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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2556 - (hide annotations) (download)
Sat Mar 17 10:40:08 2012 UTC (12 years, 1 month ago) by misc
File size: 1538 byte(s)
fix user creation

1 boklm 765 class bcd {
2 misc 776 class variable {
3     $bcd_login = 'bcd'
4     $bcd_home = '/home/bcd'
5 boklm 1547 $public_isos = "$bcd_home/public_html/isos"
6 boklm 849 $isomakers_group = 'mga-iso_makers'
7 misc 776 }
8 boklm 765
9 misc 776 class base inherits variable {
10 boklm 848 include sudo
11 misc 776
12 misc 2555 group { $bcd_login: }
13    
14     user { $bcd_login:
15 misc 2556 home => $bcd_home,
16     managehome => true,
17     comment => "User for creating ISOs",
18 misc 2555 }
19 boklm 765
20 boklm 1547 file { $public_isos:
21     ensure => directory,
22     owner => $bcd_login,
23     group => $bcd_login,
24     mode => 755,
25     }
26    
27 boklm 1191 #package { bcd:
28     # ensure => 'installed',
29     #}
30 boklm 765
31 misc 777 sudo::sudoers_config { "bcd":
32 boklm 848 content => template("bcd/sudoers.bcd")
33 boklm 765 }
34 boklm 952
35     file { "/var/lib/bcd":
36 boklm 953 ensure => directory,
37 boklm 952 owner => $bcd_login,
38     group => $bcd_login,
39     mode => 755,
40     }
41    
42 boklm 765 }
43 boklm 1463
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 dams 2123 file {"htaccess":
50     path => "$bcd_home/public_html/.htaccess",
51 dams 2122 ensure => present,
52     owner => bcd,
53     group => bcd,
54     mode => 755,
55     content => template("bcd/.htaccess")
56     }
57 dams 2123 file {"htpasswd":
58     path => "$bcd_home/public_html/.htpasswd",
59 dams 2122 ensure => present,
60     owner => bcd,
61     group => bcd,
62     mode => 755,
63     content => template("bcd/.htpasswd")
64     }
65 boklm 1463 }
66 boklm 1547
67     class rsync inherits base {
68     class { rsyncd:
69     rsyncd_conf => 'bcd/rsyncd.conf'
70     }
71     }
72 boklm 765 }

  ViewVC Help
Powered by ViewVC 1.1.30