aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-06-18 00:28:02 +0000
committerMichael Scherer <misc@mageia.org>2011-06-18 00:28:02 +0000
commit1567508dfd6f069432b2018b5f55547827493fed (patch)
treee8136d038d5db5b1b2f36690cc4e711e78821d84
parentea34ba399bf74f8f3a836e385abcd73a02f4dff8 (diff)
downloadpuppet-1567508dfd6f069432b2018b5f55547827493fed.tar
puppet-1567508dfd6f069432b2018b5f55547827493fed.tar.gz
puppet-1567508dfd6f069432b2018b5f55547827493fed.tar.bz2
puppet-1567508dfd6f069432b2018b5f55547827493fed.tar.xz
puppet-1567508dfd6f069432b2018b5f55547827493fed.zip
fix the error message due to postgresql being declared twice :
- one time on rabbit ( for the check ) - one time on alamut ( for the report ) Much easier to figure out once I found the FAQ on puppet website : http://docs.puppetlabs.com/guides/troubleshooting.html#err-exported-resource-blahsometitle-cannot-override-local-resource-on-node-nodename
-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
}