From 1567508dfd6f069432b2018b5f55547827493fed Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 18 Jun 2011 00:28:02 +0000 Subject: 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 --- modules/youri-check/manifests/init.pp | 18 ++++++++++-------- 1 file 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 } -- cgit v1.2.1