/[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 2195 - (show annotations) (download)
Sun Jan 8 20:24:50 2012 UTC (9 years, 8 months ago) by misc
File size: 1233 byte(s)
some more cleaning in dahsboard module
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 ensure => present,
13 comment => "dashboard system user",
14 managehome => true,
15 home => $dashboard_home_dir,
16 shell => "/bin/bash",
17 }
18
19 subversion::snapshot { $dashboard_dir:
20 source => "svn://svn.$domain/soft/dashboard/",
21 }
22
23 package { "php-cli": }
24
25 file { $dashboard_wwwdir:
26 ensure => directory,
27 owner => $dashboard_login,
28 group => $dashboard_login,
29 }
30
31 file { $dashboard_bindir:
32 ensure => directory,
33 }
34
35 file { "$dashboard_bindir/make_report":
36 mode => 755,
37 content => template('dashboard/make_report'),
38 }
39
40 apache::vhost_base { "dashboard.$domain":
41 location => $dashboard_wwwdir,
42 }
43
44 cron { "update dashboard":
45 command => "$dashboard_bindir/make_report",
46 user => $dashboard_login,
47 hour => "*/2",
48 minute => '15',
49 }
50 }
51 }

  ViewVC Help
Powered by ViewVC 1.1.28