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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1394 - (hide annotations) (download)
Fri Mar 25 15:28:35 2011 UTC (13 years ago) by pterjan
File size: 1005 byte(s)
Set the user for the cron job
1 pterjan 1364 class youri-check {
2 misc 1371 class variable {
3     $location = "/var/www/youri-check"
4     $vhost = "check.$domain"
5     }
6 pterjan 1364
7 misc 1371 class check inherits variable {
8 pterjan 1368 $user = 'youri'
9     $home = '/var/tmp/youri'
10     $outdir = "$home/www"
11     $config = "/etc/youri/cauldron.conf"
12 pterjan 1364
13 pterjan 1368 user { $user:
14     comment => "Youri Check",
15     ensure => present,
16     managehome => true,
17     home => $home,
18     }
19 pterjan 1364
20 pterjan 1368 package { ['perl-Youri-Media', 'youri-check', 'perl-DBD-SQLite'] :
21     ensure => installed
22     }
23 pterjan 1364
24 pterjan 1368 cron { 'check':
25     command => "youri-check -c $config test && youri-check -c $config report",
26     hour => 6,
27 pterjan 1394 user => "$user",
28 pterjan 1368 }
29    
30     file { "$config":
31     ensure => present,
32     owner => $user,
33     mode => 640,
34     content => template("youri-check/check.conf"),
35     }
36 pterjan 1364 }
37    
38 misc 1371 class website inherits variable {
39 pterjan 1368 file { "$location":
40     ensure => directory,
41     owner => apache,
42     mode => 755
43     }
44    
45     apache::vhost_simple { $vhost:
46     location => $location,
47     }
48 pterjan 1364 }
49     }

  ViewVC Help
Powered by ViewVC 1.1.30