aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-15 00:48:20 +0000
committerMichael Scherer <misc@mageia.org>2011-02-15 00:48:20 +0000
commitaa79f9a28161222765d177b58f77170bc69d916d (patch)
tree7108a5a2a5d34b36fea410b6c701d3a67ec72ccf
parentc57dd5e193b3ac9a856d4c98a4173d48a32165c3 (diff)
downloadpuppet-aa79f9a28161222765d177b58f77170bc69d916d.tar
puppet-aa79f9a28161222765d177b58f77170bc69d916d.tar.gz
puppet-aa79f9a28161222765d177b58f77170bc69d916d.tar.bz2
puppet-aa79f9a28161222765d177b58f77170bc69d916d.tar.xz
puppet-aa79f9a28161222765d177b58f77170bc69d916d.zip
create the postgresql db for phpbb
-rw-r--r--modules/phpbb/manifests/init.pp10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/phpbb/manifests/init.pp b/modules/phpbb/manifests/init.pp
index 06634821..e04b1a32 100644
--- a/modules/phpbb/manifests/init.pp
+++ b/modules/phpbb/manifests/init.pp
@@ -13,6 +13,14 @@ class phpbb {
# TODO git checkout
- # TODO mysql vm creation
+ $pgsql_password = extlookup("phpbb_pgsql",'x')
+ @@postgresql::user { 'phpbb':
+ password => $pgsql_password,
+ }
+ @@postgresql::database { 'phpbb':
+ description => "Phpbb database",
+ user => "phpbb",
+ require => Postgresql::User['phpbb']
+ }
}