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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2199 - (show annotations) (download)
Sun Jan 8 20:24:58 2012 UTC (12 years, 2 months ago) by misc
File size: 1136 byte(s)
add defaults values for user created by puppet, to remove duplication
1 class dashboard {
2 class variable {
3 $dashboard_login = "dashboard"
4 $dashboard_home_dir = "/var/lib/$dashboard_login"
5 $dashboard_dir = "$dashboard_home_dir/dashboard"
6 $dashboard_bindir = "$dashboard_home_dir/bin"
7 $dashboard_wwwdir = "/var/www/vhosts/dashboard.$domain"
8 }
9
10 class base inherits variable {
11 user {"$dashboard_login":
12 comment => "dashboard system user",
13 home => $dashboard_home_dir,
14 }
15
16 subversion::snapshot { $dashboard_dir:
17 source => "svn://svn.$domain/soft/dashboard/",
18 }
19
20 package { "php-cli": }
21
22 file { $dashboard_wwwdir:
23 ensure => directory,
24 owner => $dashboard_login,
25 group => $dashboard_login,
26 }
27
28 file { $dashboard_bindir:
29 ensure => directory,
30 }
31
32 file { "$dashboard_bindir/make_report":
33 mode => 755,
34 content => template('dashboard/make_report'),
35 }
36
37 apache::vhost_base { "dashboard.$domain":
38 location => $dashboard_wwwdir,
39 }
40
41 cron { "update dashboard":
42 command => "$dashboard_bindir/make_report",
43 user => $dashboard_login,
44 hour => "*/2",
45 minute => '15',
46 }
47 }
48 }

  ViewVC Help
Powered by ViewVC 1.1.30