26 |
# cookie_domain |
# cookie_domain |
27 |
# board_contact |
# board_contact |
28 |
# |
# |
|
define phpbb_config($value) { |
|
|
exec { "/usr/local/bin/phpbb_apply_config.pl $name": |
|
|
user => root, |
|
|
environment => ["PGDATABASE=$database", "PGUSER=$user", "PGPASSWORD=$pgsql_password", "PGHOST=pgsql.$domain", "VALUE=$value"], |
|
|
require => File["/usr/local/bin/phpbb_apply_config.pl"], |
|
|
} |
|
|
} |
|
|
|
|
29 |
$pgsql_password = extlookup("phpbb_pgsql",'x') |
$pgsql_password = extlookup("phpbb_pgsql",'x') |
30 |
@@postgresql::user { $user: |
@@postgresql::user { $user: |
31 |
password => $pgsql_password, |
password => $pgsql_password, |
39 |
} |
} |
40 |
} |
} |
41 |
|
|
42 |
|
define phpbb_config($value) { |
43 |
|
exec { "/usr/local/bin/phpbb_apply_config.pl $name": |
44 |
|
user => root, |
45 |
|
environment => ["PGDATABASE=$phpbb::base::database", |
46 |
|
"PGUSER=$phpbb::base::user", |
47 |
|
"PGPASSWORD=$phpbb::base::pgsql_password", |
48 |
|
"PGHOST=pgsql.$domain", |
49 |
|
"VALUE=$value"], |
50 |
|
require => File["/usr/local/bin/phpbb_apply_config.pl"], |
51 |
|
} |
52 |
|
} |
53 |
|
|
54 |
# TODO find a way to avoid all the phpbb::base prefix |
# TODO find a way to avoid all the phpbb::base prefix |
55 |
define instance() { |
define instance() { |