From 116df2e39ac697b55b11021985555b8f889d5110 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 15 Feb 2011 00:48:22 +0000 Subject: use a variable --- modules/phpbb/manifests/init.pp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'modules/phpbb/manifests') diff --git a/modules/phpbb/manifests/init.pp b/modules/phpbb/manifests/init.pp index e04b1a32..533a4304 100644 --- a/modules/phpbb/manifests/init.pp +++ b/modules/phpbb/manifests/init.pp @@ -1,4 +1,6 @@ class phpbb { + $database = "phpbb" + $user = "phpbb" include apache::mod_php include mysql @@ -14,13 +16,13 @@ class phpbb { # TODO git checkout $pgsql_password = extlookup("phpbb_pgsql",'x') - @@postgresql::user { 'phpbb': + @@postgresql::user { $user: password => $pgsql_password, } - @@postgresql::database { 'phpbb': + @@postgresql::database { $database: description => "Phpbb database", - user => "phpbb", - require => Postgresql::User['phpbb'] + user => $user, + require => Postgresql::User[$user] } } -- cgit v1.2.1