/[adm]/puppet/modules/youri-check/manifests/init.pp
ViewVC logotype

Diff of /puppet/modules/youri-check/manifests/init.pp

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

revision 1367 by pterjan, Wed Mar 23 22:39:12 2011 UTC revision 1368 by pterjan, Wed Mar 23 23:03:01 2011 UTC
# Line 1  Line 1 
1  class youri-check {  class youri-check {
2        $location = "/var/www/youri-check"
3        $vhost = "check.$domain"
4    
5      $user = 'youri'      class check {
6      $home = '/var/tmp/youri'          $user = 'youri'
7      $outdir = "$home/www"          $home = '/var/tmp/youri'
8      $config = "/etc/youri/cauldron.conf"          $outdir = "$home/www"
9            $config = "/etc/youri/cauldron.conf"
     user { $user:  
         comment => "Youri Check",  
         ensure => present,  
         managehome => true,  
         home => $home,  
     }  
10    
11      package { ['perl-Youri-Media', 'youri-check', 'perl-DBD-SQLite'] :          user { $user:
12          ensure => installed              comment => "Youri Check",
13      }              ensure => present,
14                managehome => true,
15                home => $home,
16            }
17    
18            package { ['perl-Youri-Media', 'youri-check', 'perl-DBD-SQLite'] :
19                ensure => installed
20            }
21    
22      cron { 'check':          cron { 'check':
23         command => "youri-check -c $config test && youri-check -c $config report",              command => "youri-check -c $config test && youri-check -c $config report",
24         hour => 6,              hour => 6,
25            }
26    
27            file { "$config":
28                ensure => present,
29                owner => $user,
30                mode => 640,
31                content => template("youri-check/check.conf"),
32            }
33      }      }
34    
35      file { "$config":      class website {
36         ensure => present,          file { "$location":
37         owner => $user,              ensure => directory,
38         mode => 640,              owner => apache,
39         content => template("youri-check/check.conf"),              mode => 755
40            }
41    
42            apache::vhost_simple { $vhost:
43                location => $location,
44            }
45      }      }
46  }  }

Legend:
Removed from v.1367  
changed lines
  Added in v.1368

  ViewVC Help
Powered by ViewVC 1.1.30