aboutsummaryrefslogtreecommitdiffstats
path: root/modules/phpbb/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/phpbb/manifests/init.pp')
-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,
}