* fixed typos and mistakes. thanks nickchappell.

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

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

refs#7228: https://dev.icinga.org/issues/7228
This commit is contained in:
Ricardo Melo 2014-10-22 16:50:21 -04:00 committed by Nick Chappell
parent f0415a6c5a
commit 537735a486
2 changed files with 9 additions and 6 deletions

View file

@ -11,15 +11,15 @@
define icinga2::object::notificationcommand (
$object_notificationcommandname = $name,
$template_to_import = 'plugin-check-command',
$template_to_import = 'plugin-notification-command',
/* $methods = undef, */ /* Need to get more details about this attribute */
$command = undef,
$cmd_path = 'PluginDir',
$arguments = {},
$arguments = undef,
$env = undef,
$vars = {},
$vars = undef,
$timeout = undef,
$target_dir = '/etc/icinga2/conf.d',
$target_dir = '/etc/icinga2/objects/notificationcommands',
$target_file_name = "${name}.conf",
$target_file_owner = 'root',
$target_file_group = 'root',
@ -31,6 +31,9 @@ define icinga2::object::notificationcommand (
validate_string($template_to_import)
validate_array($command)
validate_string($cmd_path)
if $arguments {
validate_hash($arguments)
}
if $env {
validate_hash($env)
}

View file

@ -1,5 +1,5 @@
/**
* WARNING: This CheckCommand definition is automatically generated by Puppet.
* WARNING: This NotificationCommand definition is automatically generated by Puppet.
* ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN!
*/
@ -54,7 +54,7 @@ object NotificationCommand "<%= @object_notificationcommandname %>" {
<%- if @env -%>
env = {
<%- @vars.each_pair do |key,value| -%>
<%- @env.each_pair do |key,value| -%>
<%= key %> = <%= value %>
<%- end -%>
}