52 |
|
|
53 |
} |
} |
54 |
|
|
55 |
define phpbb_config($value) { |
define phpbb_config($key, $value) { |
56 |
exec { "/usr/local/bin/phpbb_apply_config.pl $name": |
exec { "/usr/local/bin/phpbb_apply_config.pl $key": |
57 |
user => root, |
user => root, |
58 |
environment => ["PGDATABASE=$phpbb::base::database", |
environment => ["PGDATABASE=$phpbb::base::database", |
59 |
"PGUSER=$phpbb::base::user", |
"PGUSER=$phpbb::base::user", |
124 |
user => $user, |
user => $user, |
125 |
} |
} |
126 |
|
|
127 |
phpbb_config { "ldap_user": |
phpbb_config { "ldap_user/$lang": |
128 |
|
key => "ldap_user", |
129 |
value => "cn=phpbb-$hostname,ou=System Accounts,$dc_suffix", |
value => "cn=phpbb-$hostname,ou=System Accounts,$dc_suffix", |
130 |
} |
} |
131 |
|
|
132 |
phpbb_config { "ldap_server": |
phpbb_config { "ldap_server/$lang": |
133 |
|
key => "ldap_server", |
134 |
value => "ldaps://ldap.$domain", |
value => "ldaps://ldap.$domain", |
135 |
} |
} |
136 |
|
|
137 |
$ldap_password = extlookup("phpbb_ldap",'x') |
$ldap_password = extlookup("phpbb_ldap",'x') |
138 |
phpbb_config { "ldap_password": |
phpbb_config { "ldap_password/$lang": |
139 |
|
key => "ldap_password", |
140 |
value => $ldap_password, |
value => $ldap_password, |
141 |
} |
} |
142 |
|
|
143 |
phpbb_config { "ldap_base_dn": |
phpbb_config { "ldap_base_dn/$lang": |
144 |
|
key => "ldap_base_dn", |
145 |
value => "ou=People,$dc_suffix", |
value => "ou=People,$dc_suffix", |
146 |
} |
} |
147 |
|
|
148 |
phpbb_config { "auth_method": |
phpbb_config { "auth_method/$lang": |
149 |
|
key => "auth_method", |
150 |
value => "ldap", |
value => "ldap", |
151 |
} |
} |
152 |
|
|
153 |
phpbb_config { "ldap_mail": |
phpbb_config { "ldap_mail/$lang": |
154 |
|
key => "ldap_mail", |
155 |
value => "mail", |
value => "mail", |
156 |
} |
} |
157 |
|
|
158 |
phpbb_config { "ldap_uid": |
phpbb_config { "ldap_uid/$lang": |
159 |
|
key => "ldap_mail", |
160 |
value => "uid", |
value => "uid", |
161 |
} |
} |
162 |
|
|
163 |
phpbb_config { "cookie_domain": |
phpbb_config { "cookie_domain/$lang": |
164 |
|
key => "ldap_mail", |
165 |
value => "forums.$domain", |
value => "forums.$domain", |
166 |
} |
} |
167 |
|
|
168 |
phpbb_config { "server_name": |
phpbb_config { "server_name/$lang": |
169 |
|
key => "ldap_mail", |
170 |
value => "forums.$domain", |
value => "forums.$domain", |
171 |
} |
} |
172 |
|
|