/[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 2555 - (show annotations) (download)
Sat Mar 17 10:35:52 2012 UTC (8 years, 7 months ago) by misc
File size: 1500 byte(s)
use a regular user for bcd, not a special one with ssh key management builtin
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 homedir => $bcd_home,
16 comment => "User for creating ISOs",
17 }
18
19 file { $public_isos:
20 ensure => directory,
21 owner => $bcd_login,
22 group => $bcd_login,
23 mode => 755,
24 }
25
26 #package { bcd:
27 # ensure => 'installed',
28 #}
29
30 sudo::sudoers_config { "bcd":
31 content => template("bcd/sudoers.bcd")
32 }
33
34 file { "/var/lib/bcd":
35 ensure => directory,
36 owner => $bcd_login,
37 group => $bcd_login,
38 mode => 755,
39 }
40
41 }
42
43 class web inherits base {
44 apache::vhost_base { "bcd.$domain":
45 location => "$bcd_home/public_html",
46 content => template('bcd/vhost_bcd.conf'),
47 }
48 file {"htaccess":
49 path => "$bcd_home/public_html/.htaccess",
50 ensure => present,
51 owner => bcd,
52 group => bcd,
53 mode => 755,
54 content => template("bcd/.htaccess")
55 }
56 file {"htpasswd":
57 path => "$bcd_home/public_html/.htpasswd",
58 ensure => present,
59 owner => bcd,
60 group => bcd,
61 mode => 755,
62 content => template("bcd/.htpasswd")
63 }
64 }
65
66 class rsync inherits base {
67 class { rsyncd:
68 rsyncd_conf => 'bcd/rsyncd.conf'
69 }
70 }
71 }

  ViewVC Help
Powered by ViewVC 1.1.28