1 |
misc |
1053 |
class phpbb { |
2 |
misc |
1073 |
$database = "phpbb" |
3 |
|
|
$user = "phpbb" |
4 |
misc |
1053 |
|
5 |
|
|
include apache::mod_php |
6 |
|
|
include mysql |
7 |
|
|
|
8 |
dmorgan |
1060 |
package { ["php-gd","php-xml","php-zlib","php-ftp","php-magickwand" ] : |
9 |
misc |
1053 |
ensure => installed |
10 |
|
|
} |
11 |
|
|
|
12 |
|
|
# TODO ldap account configuration |
13 |
|
|
|
14 |
|
|
# TODO apache setup |
15 |
|
|
|
16 |
|
|
# TODO git checkout |
17 |
|
|
|
18 |
misc |
1072 |
$pgsql_password = extlookup("phpbb_pgsql",'x') |
19 |
misc |
1073 |
@@postgresql::user { $user: |
20 |
misc |
1072 |
password => $pgsql_password, |
21 |
|
|
} |
22 |
misc |
1053 |
|
23 |
misc |
1073 |
@@postgresql::database { $database: |
24 |
misc |
1072 |
description => "Phpbb database", |
25 |
misc |
1073 |
user => $user, |
26 |
|
|
require => Postgresql::User[$user] |
27 |
misc |
1072 |
} |
28 |
misc |
1053 |
} |