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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2711 by misc, Sun Mar 25 12:47:26 2012 UTC revision 2712 by misc, Mon Apr 2 11:05:48 2012 UTC
# Line 1  Line 1 
1  class dashboard {  class dashboard {
2      class variable {      $dashboard_login = 'dashboard'
3          $dashboard_login = "dashboard"      $dashboard_home_dir = "/var/lib/$dashboard_login"
4          $dashboard_home_dir = "/var/lib/$dashboard_login"      $dashboard_dir = "$dashboard_home_dir/dashboard"
5          $dashboard_dir = "$dashboard_home_dir/dashboard"      $dashboard_bindir = "$dashboard_home_dir/bin"
6          $dashboard_bindir = "$dashboard_home_dir/bin"      $dashboard_wwwdir = "/var/www/vhosts/dashboard.$::domain"
7          $dashboard_wwwdir = "/var/www/vhosts/dashboard.$domain"  
8      }      user { $dashboard_login:
9            comment => 'dashboard system user',
10      class base inherits variable {          home    => $dashboard_home_dir,
11          user {"$dashboard_login":      }
12              comment => "dashboard system user",  
13              home => $dashboard_home_dir,      subversion::snapshot { $dashboard_dir:
14          }          source => "svn://svn.$::domain/soft/dashboard/",
15        }
16          subversion::snapshot { $dashboard_dir:  
17              source => "svn://svn.$domain/soft/dashboard/",      package { 'php-cli': }
18          }  
19        file { $dashboard_wwwdir:
20          package { "php-cli": }          ensure => directory,
21            owner  => $dashboard_login,
22          file { $dashboard_wwwdir:          group  => $dashboard_login,
23              ensure => directory,      }
24              owner => $dashboard_login,  
25              group => $dashboard_login,      file { $dashboard_bindir:
26          }          ensure => directory,
27        }
28          file { $dashboard_bindir:  
29              ensure => directory,      file { "$dashboard_bindir/make_report":
30          }          mode    => '0755',
31            content => template('dashboard/make_report'),
32          file { "$dashboard_bindir/make_report":      }
33              mode => 755,  
34              content => template('dashboard/make_report'),      apache::vhost::base { "dashboard.$::domain":
35          }          location => $dashboard_wwwdir,
36        }
37          apache::vhost::base { "dashboard.$domain":  
38              location => $dashboard_wwwdir,      cron { 'update dashboard':
39          }          command => "$dashboard_bindir/make_report",
40            user    => $dashboard_login,
41          cron { "update dashboard":          hour    => '*/2',
42              command => "$dashboard_bindir/make_report",          minute  => '15',
             user => $dashboard_login,  
             hour => "*/2",  
             minute => '15',  
         }  
43      }      }
44  }  }

Legend:
Removed from v.2711  
changed lines
  Added in v.2712

  ViewVC Help
Powered by ViewVC 1.1.28