aboutsummaryrefslogtreecommitdiffstats
path: root/modules/youri-check
diff options
context:
space:
mode:
Diffstat (limited to 'modules/youri-check')
-rw-r--r--modules/youri-check/manifests/init.pp18
1 files changed, 10 insertions, 8 deletions
diff --git a/modules/youri-check/manifests/init.pp b/modules/youri-check/manifests/init.pp
index 3201e400..39dfcea7 100644
--- a/modules/youri-check/manifests/init.pp
+++ b/modules/youri-check/manifests/init.pp
@@ -17,14 +17,7 @@ class youri-check {
$pgsql_db = 'youri_check'
$pgsql_user = 'youri'
$pgsql_password = extlookup('youri_pgsql','x')
- postgresql::remote_user { $pgsql_user:
- password => $pgsql_password,
- }
- postgresql::remote_database { $pgsql_db:
- description => "Youri Check results",
- user => $pgsql_user,
- }
-
+
file { "$config":
ensure => present,
owner => $user,
@@ -54,6 +47,15 @@ class youri-check {
mode => 755
}
+ postgresql::remote_user { $pgsql_user:
+ password => $pgsql_password,
+ }
+
+ postgresql::remote_database { $pgsql_db:
+ description => "Youri Check results",
+ user => $pgsql_user,
+ }
+
package { ['youri-check', 'perl-DBD-Pg'] :
ensure => installed
}