22 |
source => 'puppet:///modules/phpbb/phpbb_apply_config.pl', |
source => 'puppet:///modules/phpbb/phpbb_apply_config.pl', |
23 |
} |
} |
24 |
|
|
|
# TODO phpbb config |
|
|
# cookie_domain |
|
|
# board_contact |
|
|
# |
|
25 |
$pgsql_password = extlookup("phpbb_pgsql",'x') |
$pgsql_password = extlookup("phpbb_pgsql",'x') |
26 |
@@postgresql::user { $user: |
@@postgresql::user { $user: |
27 |
password => $pgsql_password, |
password => $pgsql_password, |
33 |
owner => root, |
owner => root, |
34 |
group => root, |
group => root, |
35 |
} |
} |
36 |
|
# TODO add a ssl counterpart |
37 |
|
# TODO check that everything is locked down |
38 |
apache::vhost_base { "forums.$domain": |
apache::vhost_base { "forums.$domain": |
39 |
content => template("phpbb/forums_vhost.conf"), |
content => template("phpbb/forums_vhost.conf"), |
40 |
} |
} |
64 |
$pgsql_password = $phpbb::base::pgsql_password |
$pgsql_password = $phpbb::base::pgsql_password |
65 |
$forums_dir = $phpbb::base::forums_dir |
$forums_dir = $phpbb::base::forums_dir |
66 |
|
|
67 |
|
# TODO manage the permission of the various subdirectory |
68 |
exec { "git clone git://git.$domain/forum/ $lang": |
exec { "git clone git://git.$domain/forum/ $lang": |
69 |
cwd => $forums_dir, |
cwd => $forums_dir, |
70 |
creates => "$forums_dir/$lang", |
creates => "$forums_dir/$lang", |
86 |
require => Postgresql::User[$user] |
require => Postgresql::User[$user] |
87 |
} |
} |
88 |
|
|
|
# TODO server_name => forums.$domain |
|
|
# cookie_domain => forums.$domain |
|
|
# auth_method => ldap |
|
|
# ldap_uid => uid |
|
|
# ldap_mail => mail |
|
89 |
phpbb_config { "ldap_user": |
phpbb_config { "ldap_user": |
90 |
value => "cn=phpbb-friteuse,ou=System Accounts,$dc_suffix", |
value => "cn=phpbb-friteuse,ou=System Accounts,$dc_suffix", |
91 |
} |
} |
102 |
phpbb_config { "ldap_base_dn": |
phpbb_config { "ldap_base_dn": |
103 |
value => "ou=People,$dc_suffix", |
value => "ou=People,$dc_suffix", |
104 |
} |
} |
105 |
|
|
106 |
|
phpbb_config { "auth_method": |
107 |
|
value => "ldap", |
108 |
|
} |
109 |
|
|
110 |
|
phpbb_config { "ldap_mail": |
111 |
|
value => "mail", |
112 |
|
} |
113 |
|
|
114 |
|
phpbb_config { "ldap_uid": |
115 |
|
value => "uid", |
116 |
|
} |
117 |
|
|
118 |
|
phpbb_config { "cookie_domain": |
119 |
|
value => "forums.$domain", |
120 |
|
} |
121 |
|
|
122 |
|
phpbb_config { "server_name": |
123 |
|
value => "forums.$domain", |
124 |
|
} |
125 |
|
|
126 |
|
|
127 |
} |
} |
128 |
} |
} |