diff options
author | Michael Scherer <misc@mageia.org> | 2011-04-19 09:03:32 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-04-19 09:03:32 +0000 |
commit | 7f9fd57f45bce025621cd9efdd8e819542591c50 (patch) | |
tree | 783c46b1593201c34d15a958d79b814bd0fb629d /modules/phpbb/manifests | |
parent | a56807a19e2d5505e1aeb2efbb4bf94a884bac58 (diff) | |
download | puppet-7f9fd57f45bce025621cd9efdd8e819542591c50.tar puppet-7f9fd57f45bce025621cd9efdd8e819542591c50.tar.gz puppet-7f9fd57f45bce025621cd9efdd8e819542591c50.tar.bz2 puppet-7f9fd57f45bce025621cd9efdd8e819542591c50.tar.xz puppet-7f9fd57f45bce025621cd9efdd8e819542591c50.zip |
change phpbb_config so it can be declared multiple time ( ie for more than one
instance ) without having issue with ressources title unicity
Diffstat (limited to 'modules/phpbb/manifests')
-rw-r--r-- | modules/phpbb/manifests/init.pp | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/modules/phpbb/manifests/init.pp b/modules/phpbb/manifests/init.pp index 7f6e166e..3bc8dd7f 100644 --- a/modules/phpbb/manifests/init.pp +++ b/modules/phpbb/manifests/init.pp @@ -52,8 +52,8 @@ class phpbb { } - define phpbb_config($value) { - exec { "/usr/local/bin/phpbb_apply_config.pl $name": + define phpbb_config($key, $value) { + exec { "/usr/local/bin/phpbb_apply_config.pl $key": user => root, environment => ["PGDATABASE=$phpbb::base::database", "PGUSER=$phpbb::base::user", @@ -124,40 +124,49 @@ class phpbb { user => $user, } - phpbb_config { "ldap_user": + phpbb_config { "ldap_user/$lang": + key => "ldap_user", value => "cn=phpbb-$hostname,ou=System Accounts,$dc_suffix", } - phpbb_config { "ldap_server": + phpbb_config { "ldap_server/$lang": + key => "ldap_server", value => "ldaps://ldap.$domain", } $ldap_password = extlookup("phpbb_ldap",'x') - phpbb_config { "ldap_password": + phpbb_config { "ldap_password/$lang": + key => "ldap_password", value => $ldap_password, } - phpbb_config { "ldap_base_dn": + phpbb_config { "ldap_base_dn/$lang": + key => "ldap_base_dn", value => "ou=People,$dc_suffix", } - phpbb_config { "auth_method": + phpbb_config { "auth_method/$lang": + key => "auth_method", value => "ldap", } - phpbb_config { "ldap_mail": + phpbb_config { "ldap_mail/$lang": + key => "ldap_mail", value => "mail", } - phpbb_config { "ldap_uid": + phpbb_config { "ldap_uid/$lang": + key => "ldap_mail", value => "uid", } - phpbb_config { "cookie_domain": + phpbb_config { "cookie_domain/$lang": + key => "ldap_mail", value => "forums.$domain", } - phpbb_config { "server_name": + phpbb_config { "server_name/$lang": + key => "ldap_mail", value => "forums.$domain", } |