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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1364 - (show annotations) (download)
Wed Mar 23 22:29:22 2011 UTC (13 years ago) by pterjan
File size: 633 byte(s)
Add a first version of youri-check module, running "dependencies" and "missing" on core
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 }

  ViewVC Help
Powered by ViewVC 1.1.30