From aa79f9a28161222765d177b58f77170bc69d916d Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 15 Feb 2011 00:48:20 +0000 Subject: create the postgresql db for phpbb --- modules/phpbb/manifests/init.pp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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'] + } } -- cgit v1.2.1