aboutsummaryrefslogtreecommitdiffstats
path: root/modules/phpbb
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-04-19 11:20:27 +0000
committerMichael Scherer <misc@mageia.org>2011-04-19 11:20:27 +0000
commit1be263da71f68db860b772af083763031eb28084 (patch)
tree2bf2e7ca7ee4482d4c00730c7cf5cda69d8702e0 /modules/phpbb
parentfcc182c0b6a118044d55ecbda417ce816b6849d2 (diff)
downloadpuppet-1be263da71f68db860b772af083763031eb28084.tar
puppet-1be263da71f68db860b772af083763031eb28084.tar.gz
puppet-1be263da71f68db860b772af083763031eb28084.tar.bz2
puppet-1be263da71f68db860b772af083763031eb28084.tar.xz
puppet-1be263da71f68db860b772af083763031eb28084.zip
declare phpbb database using a different type, so this can be then used
on postgresql side to declare access on the database
Diffstat (limited to 'modules/phpbb')
-rw-r--r--modules/phpbb/manifests/init.pp14
1 files changed, 11 insertions, 3 deletions
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,
}