1 |
class youri-check { |
2 |
|
3 |
$user = 'youri' |
4 |
$home = '/var/tmp/youri' |
5 |
$outdir = "$home/www" |
6 |
$config = "/etc/youri/cauldron.conf" |
7 |
|
8 |
user { $user: |
9 |
comment => "Youri Check", |
10 |
ensure => present, |
11 |
managehome => true, |
12 |
home => $home, |
13 |
} |
14 |
|
15 |
package { ['perl-Youri-Media', 'youri-check', 'perl-DBD-SQLite'] : |
16 |
ensure => installed |
17 |
} |
18 |
|
19 |
cron { 'check': |
20 |
command => "youri-check -c $config test && youri-check -c $config report", |
21 |
hour => 6, |
22 |
} |
23 |
|
24 |
file { "$config": |
25 |
ensure => present, |
26 |
owner => $user, |
27 |
mode => 640, |
28 |
content => template("youri_check/check.conf"), |
29 |
} |
30 |
} |