aboutsummaryrefslogtreecommitdiffstats
path: root/modules/youri-check/manifests
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2011-03-23 22:29:22 +0000
committerPascal Terjan <pterjan@mageia.org>2011-03-23 22:29:22 +0000
commit0021bf5fcbe31bf1399e59e797f1e95f5b272fa3 (patch)
treeb357ba820031a4d688da081ee1a734a414adfec4 /modules/youri-check/manifests
parent2bc3864b0492c302dea60d2ad247bce0c4005e07 (diff)
downloadpuppet-0021bf5fcbe31bf1399e59e797f1e95f5b272fa3.tar
puppet-0021bf5fcbe31bf1399e59e797f1e95f5b272fa3.tar.gz
puppet-0021bf5fcbe31bf1399e59e797f1e95f5b272fa3.tar.bz2
puppet-0021bf5fcbe31bf1399e59e797f1e95f5b272fa3.tar.xz
puppet-0021bf5fcbe31bf1399e59e797f1e95f5b272fa3.zip
Add a first version of youri-check module, running "dependencies" and "missing" on core
Diffstat (limited to 'modules/youri-check/manifests')
-rw-r--r--modules/youri-check/manifests/init.pp30
1 files changed, 30 insertions, 0 deletions
diff --git a/modules/youri-check/manifests/init.pp b/modules/youri-check/manifests/init.pp
new file mode 100644
index 00000000..4f147482
--- /dev/null
+++ b/modules/youri-check/manifests/init.pp
@@ -0,0 +1,30 @@
+class youri-check {
+
+ $user = 'youri'
+ $home = '/var/tmp/youri'
+ $outdir = "$home/www"
+ $config = "/etc/youri/cauldron.conf"
+
+ user { $user:
+ comment => "Youri Check",
+ ensure => present,
+ managehome => true,
+ home => $home,
+ }
+
+ package { ['perl-Youri-Media', 'youri-check', 'perl-DBD-SQLite'] :
+ ensure => installed
+ }
+
+ cron { 'check':
+ command => "youri-check -c $config test && youri-check -c $config report",
+ hour => 6,
+ }
+
+ file { "$config":
+ ensure => present,
+ owner => $user,
+ mode => 640,
+ content => template("youri_check/check.conf"),
+ }
+}