aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmanifests/nodes/sucuk.pp7
-rw-r--r--modules/youri-check/manifests/init.pp16
2 files changed, 23 insertions, 0 deletions
diff --git a/manifests/nodes/sucuk.pp b/manifests/nodes/sucuk.pp
index 3da75b00..31c3ae74 100755
--- a/manifests/nodes/sucuk.pp
+++ b/manifests/nodes/sucuk.pp
@@ -59,6 +59,7 @@ node sucuk {
youri-check::report_www { 'check': }
+
youri-check::config {'config_cauldron':
version => 'cauldron',
}
@@ -68,9 +69,15 @@ node sucuk {
minute => '24'
}
+
+ youri-check::createdb_user {'config_5':
+ version => '5',
+ }
+
youri-check::config {'config_5':
version => '5',
}
+
youri-check::report {'report_5':
version => '5',
hour => '*',
diff --git a/modules/youri-check/manifests/init.pp b/modules/youri-check/manifests/init.pp
index 30b91171..6ee6461c 100644
--- a/modules/youri-check/manifests/init.pp
+++ b/modules/youri-check/manifests/init.pp
@@ -49,6 +49,22 @@ class youri-check {
}
}
+
+ define createdb_user($version) {
+ $pgsql_db = "youri_check_${version}"
+ $pgsql_user = "youri${version}"
+ $pgsql_password = extlookup('youri_pgsql','x')
+
+ postgresql::remote_user { $pgsql_user:
+ password => $base::pgsql_password,
+ }
+
+ postgresql::remote_database { $pgsql_db:
+ description => "Youri Check results",
+ user => $pgsql_user,
+ }
+ }
+
define check($version, $hour = "*", $minute = 0) {
include youri-check::base
$config = "/etc/youri/${version}.conf"