Puppet Class: icingaweb2::module::translation
- Defined in:
- manifests/module/translation.pp
Overview
Class: icingaweb2::module::translation
Install and configure the translation module.
Parameters
- ensure
-
Enable or disable module. Defaults to ‘present`
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'manifests/module/translation.pp', line 10
class icingaweb2::module::translation(
Enum['absent', 'present'] $ensure = 'present',
){
$conf_dir = $::icingaweb2::params::conf_dir
$module_conf_dir = "${conf_dir}/modules/translation"
# gettext-tools SUSE
package { $::icingaweb2::params::gettext_package_name:
ensure => $ensure,
}
$settings = {
'module-translation' => {
'section_name' => 'translation',
'target' => "${module_conf_dir}/config.ini",
'settings' => {
'msgmerge' => '/usr/bin/msgmerge',
'xgettext' => '/usr/bin/xgettext',
'msgfmt' => '/usr/bin/msgfmt',
},
},
}
icingaweb2::module { 'translation':
ensure => $ensure,
install_method => 'none',
settings => $settings,
}
}
|