adding ability to call a static checkcommand template

Signed-off-by: Nick Chappell <nick@intronic.org>

Merged from: https://github.com/Icinga/puppet-icinga2/pull/35

refs#7628: https://dev.icinga.org/issues/7628
This commit is contained in:
Steven Bambling 2014-10-23 09:12:49 -04:00 committed by Nick Chappell
parent 6e5dd00438
commit 46298909ed

View file

@ -20,6 +20,8 @@ define icinga2::object::checkcommand (
$vars = {}, $vars = {},
$timeout = undef, $timeout = undef,
$target_dir = '/etc/icinga2/objects/checkcommands', $target_dir = '/etc/icinga2/objects/checkcommands',
$checkcommand_template_module = 'icinga2',
$checkcommand_template = 'object_checkcommand.conf.erb',
$target_file_name = "${name}.conf", $target_file_name = "${name}.conf",
$target_file_owner = 'root', $target_file_owner = 'root',
$target_file_group = 'root', $target_file_group = 'root',
@ -50,7 +52,7 @@ define icinga2::object::checkcommand (
owner => $target_file_owner, owner => $target_file_owner,
group => $target_file_group, group => $target_file_group,
mode => $target_file_mode, mode => $target_file_mode,
content => template('icinga2/object_checkcommand.conf.erb'), content => template("${checkcommand_template_module}/${checkcommand_template}"),
notify => Service['icinga2'], notify => Service['icinga2'],
} }