/[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 2712 - (hide annotations) (download)
Mon Apr 2 11:05:48 2012 UTC (12 years ago) by misc
File size: 1138 byte(s)
simplify and clean the dashboard module from puppet-lint errors
1 boklm 1777 class dashboard {
2 misc 2712 $dashboard_login = 'dashboard'
3     $dashboard_home_dir = "/var/lib/$dashboard_login"
4     $dashboard_dir = "$dashboard_home_dir/dashboard"
5     $dashboard_bindir = "$dashboard_home_dir/bin"
6     $dashboard_wwwdir = "/var/www/vhosts/dashboard.$::domain"
7    
8     user { $dashboard_login:
9     comment => 'dashboard system user',
10     home => $dashboard_home_dir,
11 boklm 1777 }
12    
13 misc 2712 subversion::snapshot { $dashboard_dir:
14     source => "svn://svn.$::domain/soft/dashboard/",
15     }
16 boklm 1777
17 misc 2712 package { 'php-cli': }
18 boklm 1780
19 misc 2712 file { $dashboard_wwwdir:
20     ensure => directory,
21     owner => $dashboard_login,
22     group => $dashboard_login,
23     }
24 boklm 1781
25 misc 2712 file { $dashboard_bindir:
26     ensure => directory,
27     }
28 boklm 1781
29 misc 2712 file { "$dashboard_bindir/make_report":
30     mode => '0755',
31     content => template('dashboard/make_report'),
32     }
33 boklm 1781
34 misc 2712 apache::vhost::base { "dashboard.$::domain":
35     location => $dashboard_wwwdir,
36     }
37 boklm 1783
38 misc 2712 cron { 'update dashboard':
39     command => "$dashboard_bindir/make_report",
40     user => $dashboard_login,
41     hour => '*/2',
42     minute => '15',
43 boklm 1777 }
44     }

  ViewVC Help
Powered by ViewVC 1.1.30