aboutsummaryrefslogtreecommitdiffstats
path: root/modules/phpbb
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-04-19 12:02:38 +0000
committerMichael Scherer <misc@mageia.org>2011-04-19 12:02:38 +0000
commitacf0e88ecf4fa46e52099900a22cc3b69c6a4381 (patch)
tree22f9554054f476fcece34a53b3246f2f0de1b817 /modules/phpbb
parent11972af7495d3f5776b6f16653892084dfa08623 (diff)
downloadpuppet-acf0e88ecf4fa46e52099900a22cc3b69c6a4381.tar
puppet-acf0e88ecf4fa46e52099900a22cc3b69c6a4381.tar.gz
puppet-acf0e88ecf4fa46e52099900a22cc3b69c6a4381.tar.bz2
puppet-acf0e88ecf4fa46e52099900a22cc3b69c6a4381.tar.xz
puppet-acf0e88ecf4fa46e52099900a22cc3b69c6a4381.zip
fix various errors :
- the same database was used for all forums ( so the german forum was not configured on installation ) - some value were wrongly set ( but that was on the wrong db )
Diffstat (limited to 'modules/phpbb')
-rw-r--r--modules/phpbb/manifests/init.pp19
1 files changed, 14 insertions, 5 deletions
diff --git a/modules/phpbb/manifests/init.pp b/modules/phpbb/manifests/init.pp
index 0e0dff0d..824c19c0 100644
--- a/modules/phpbb/manifests/init.pp
+++ b/modules/phpbb/manifests/init.pp
@@ -56,11 +56,11 @@ class phpbb {
}
- define phpbb_config($key, $value) {
+ define phpbb_config($key, $value, $database) {
exec { "phpbb_apply $name":
command => "/usr/local/bin/phpbb_apply_config.pl $key",
user => root,
- environment => ["PGDATABASE=$phpbb::base::database",
+ environment => ["PGDATABASE=$database",
"PGUSER=$phpbb::base::user",
"PGPASSWORD=$phpbb::base::pgsql_password",
"PGHOST=pgsql.$domain",
@@ -156,48 +156,57 @@ class phpbb {
}
phpbb_config { "ldap_user/$lang":
+ database => $database,
key => "ldap_user",
value => "cn=phpbb-$hostname,ou=System Accounts,$dc_suffix",
}
phpbb_config { "ldap_server/$lang":
+ database => $database,
key => "ldap_server",
value => "ldaps://ldap.$domain",
}
$ldap_password = extlookup("phpbb_ldap",'x')
phpbb_config { "ldap_password/$lang":
+ database => $database,
key => "ldap_password",
value => $ldap_password,
}
phpbb_config { "ldap_base_dn/$lang":
+ database => $database,
key => "ldap_base_dn",
value => "ou=People,$dc_suffix",
}
phpbb_config { "auth_method/$lang":
+ database => $database,
key => "auth_method",
value => "ldap",
}
phpbb_config { "ldap_mail/$lang":
+ database => $database,
key => "ldap_mail",
value => "mail",
}
phpbb_config { "ldap_uid/$lang":
- key => "ldap_mail",
+ database => $database,
+ key => "ldap_uid",
value => "uid",
}
phpbb_config { "cookie_domain/$lang":
- key => "ldap_mail",
+ database => $database,
+ key => "cookie_domain",
value => "forums.$domain",
}
phpbb_config { "server_name/$lang":
- key => "ldap_mail",
+ database => $database,
+ key => "server_name",
value => "forums.$domain",
}