aboutsummaryrefslogtreecommitdiffstats
path: root/modules/youri-check/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/youri-check/manifests/init.pp')
-rw-r--r--modules/youri-check/manifests/init.pp16
1 files changed, 16 insertions, 0 deletions
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"