81 |
} |
} |
82 |
} |
} |
83 |
|
|
84 |
|
define locale_db($tag = "default" |
85 |
|
$user = $phpbb::base::user) { |
86 |
|
postgresql::database { $name: |
87 |
|
description => "$lang db for phpbb forum", |
88 |
|
user => $user, |
89 |
|
tag => $tag, |
90 |
|
require => Postgresql::User[$user] |
91 |
|
} |
92 |
|
} |
93 |
|
|
94 |
# TODO find a way to avoid all the phpbb::base prefix |
# TODO find a way to avoid all the phpbb::base prefix |
95 |
define instance() { |
define instance() { |
96 |
include phpbb::base |
include phpbb::base |
145 |
content => template("phpbb/config.php"), |
content => template("phpbb/config.php"), |
146 |
} |
} |
147 |
|
|
148 |
|
@@phpbb::locale_db { $database: |
|
postgresql::remote_database { $database: |
|
|
description => "Phpbb database", |
|
149 |
user => $user, |
user => $user, |
150 |
} |
} |
151 |
|
|