Skip to content
Prev Previous commit
Next Next commit
Add language configuration
  • Loading branch information
dspinellis committed Dec 18, 2014
commit ecc94cefd67e87afce4067a5113cfeab136d588d
4 changes: 3 additions & 1 deletion manifests/instance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# [*server_name*] - Unique server name to use for host-based wikis
# [*admin_name*] - name of the wiki's administrator (admin by default)
# [*admin_password*] - password for the wiki's administrator (puppet by default)
# [*language*] - language to be used for the wiki
#
# === Examples
#
Expand Down Expand Up @@ -55,6 +56,7 @@
$server_name = $mediawiki::server_name,
$admin_name = 'admin',
$admin_password = 'puppet',
$language = 'en',
) {

validate_re($ensure, '^(present|absent|deleted)$',
Expand Down Expand Up @@ -108,7 +110,7 @@
--dbuser ${db_user} \
--dbpass ${db_password} \
--confpath ${mediawiki_conf_dir}/${name} \
--lang en",
--lang ${language}",
creates => "${mediawiki_conf_dir}/${name}/LocalSettings.php",
subscribe => File["${mediawiki_conf_dir}/${name}/images"],
}
Expand Down