From 1be263da71f68db860b772af083763031eb28084 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 19 Apr 2011 11:20:27 +0000 Subject: declare phpbb database using a different type, so this can be then used on postgresql side to declare access on the database --- modules/phpbb/manifests/init.pp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'modules/phpbb') diff --git a/modules/phpbb/manifests/init.pp b/modules/phpbb/manifests/init.pp index da4f4c51..0eaa9eee 100644 --- a/modules/phpbb/manifests/init.pp +++ b/modules/phpbb/manifests/init.pp @@ -81,6 +81,16 @@ class phpbb { } } + define locale_db($tag = "default" + $user = $phpbb::base::user) { + postgresql::database { $name: + description => "$lang db for phpbb forum", + user => $user, + tag => $tag, + require => Postgresql::User[$user] + } + } + # TODO find a way to avoid all the phpbb::base prefix define instance() { include phpbb::base @@ -135,9 +145,7 @@ class phpbb { content => template("phpbb/config.php"), } - - postgresql::remote_database { $database: - description => "Phpbb database", + @@phpbb::locale_db { $database: user => $user, } -- cgit v1.2.1