Puppet Class: icingaweb2::module::pdfexport
- Defined in:
- manifests/module/pdfexport.pp
Summary
Installs, configures and enables the pdfexport module.Overview
Note:
If you want to use ‘git` as `install_method`, the CLI `git` command has to be installed. You can manage it yourself as package resource or declare the package name in icingaweb2 class parameter `extra_packages`.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'manifests/module/pdfexport.pp', line 33
class icingaweb2::module::pdfexport(
Enum['absent', 'present'] $ensure = 'present',
Optional[Stdlib::Absolutepath] $module_dir = undef,
String $git_repository = 'https://github.com/Icinga/icingaweb2-module-pdfexport.git',
Optional[String] $git_revision = undef,
Enum['git', 'none', 'package'] $install_method = 'git',
String $package_name = 'icingaweb2-module-pdfexport',
Optional[Stdlib::Absolutepath] $chrome_binary = undef,
) {
$conf_dir = $::icingaweb2::globals::conf_dir
$module_conf_dir = "${conf_dir}/modules/pdfexport"
icingaweb2::module { 'pdfexport':
ensure => $ensure,
git_repository => $git_repository,
git_revision => $git_revision,
install_method => $install_method,
module_dir => $module_dir,
package_name => $package_name,
settings => {
'module-pdfexport-chrome' => {
section_name => 'chrome',
target => "${module_conf_dir}/config.ini",
settings => {
'binary' => $chrome_binary,
},
},
},
}
}
|