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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2195 - (hide annotations) (download)
Sun Jan 8 20:24:50 2012 UTC (12 years, 3 months ago) by misc
File size: 1233 byte(s)
some more cleaning in dahsboard module
1 boklm 1777 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 boklm 1781 $dashboard_bindir = "$dashboard_home_dir/bin"
7     $dashboard_wwwdir = "/var/www/vhosts/dashboard.$domain"
8 boklm 1777 }
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 boklm 1780
23 misc 2195 package { "php-cli": }
24 boklm 1781
25 boklm 1782 file { $dashboard_wwwdir:
26 boklm 1781 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 boklm 1783
40     apache::vhost_base { "dashboard.$domain":
41     location => $dashboard_wwwdir,
42     }
43 boklm 1784
44     cron { "update dashboard":
45     command => "$dashboard_bindir/make_report",
46     user => $dashboard_login,
47     hour => "*/2",
48 boklm 1785 minute => '15',
49 boklm 1784 }
50 boklm 1777 }
51     }

  ViewVC Help
Powered by ViewVC 1.1.30