/[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 2199 - (hide annotations) (download)
Sun Jan 8 20:24:58 2012 UTC (9 years, 8 months ago) by misc
File size: 1136 byte(s)
add defaults values for user created by puppet, to remove duplication
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     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 boklm 1780
20 misc 2195 package { "php-cli": }
21 boklm 1781
22 boklm 1782 file { $dashboard_wwwdir:
23 boklm 1781 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 boklm 1783
37     apache::vhost_base { "dashboard.$domain":
38     location => $dashboard_wwwdir,
39     }
40 boklm 1784
41     cron { "update dashboard":
42     command => "$dashboard_bindir/make_report",
43     user => $dashboard_login,
44     hour => "*/2",
45 boklm 1785 minute => '15',
46 boklm 1784 }
47 boklm 1777 }
48     }

  ViewVC Help
Powered by ViewVC 1.1.28