diff options
author | Michael Scherer <misc@mageia.org> | 2011-02-15 00:48:22 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-02-15 00:48:22 +0000 |
commit | 116df2e39ac697b55b11021985555b8f889d5110 (patch) | |
tree | af4ac6fa86545459a484c688fdbb0df7ae675a32 | |
parent | aa79f9a28161222765d177b58f77170bc69d916d (diff) | |
download | puppet-116df2e39ac697b55b11021985555b8f889d5110.tar puppet-116df2e39ac697b55b11021985555b8f889d5110.tar.gz puppet-116df2e39ac697b55b11021985555b8f889d5110.tar.bz2 puppet-116df2e39ac697b55b11021985555b8f889d5110.tar.xz puppet-116df2e39ac697b55b11021985555b8f889d5110.zip |
use a variable
-rw-r--r-- | modules/phpbb/manifests/init.pp | 10 |
1 files changed, 6 insertions, 4 deletions
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] } } |