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

  ViewVC Help
Powered by ViewVC 1.1.28