From 08693a1e31472cf76a10678f28ed2d954dfcecad Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Fri, 28 Jul 2017 16:56:18 +0100 Subject: [PATCH] syntax --- manifests/commands/definitions.pp | 5 ++++- templates/nrpe_cfg_head.erb | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/manifests/commands/definitions.pp b/manifests/commands/definitions.pp index 7834831..a34327b 100644 --- a/manifests/commands/definitions.pp +++ b/manifests/commands/definitions.pp @@ -22,6 +22,9 @@ ############################################################################### define cd_nrpe::commands::definitions ( + ) { - + + + } diff --git a/templates/nrpe_cfg_head.erb b/templates/nrpe_cfg_head.erb index 8b4d6eb..9078b0d 100644 --- a/templates/nrpe_cfg_head.erb +++ b/templates/nrpe_cfg_head.erb @@ -8,9 +8,9 @@ log_facility=<%= @ne_log_facility %> -<% unless @ne_log_file.empty? %> +<% unless @ne_log_file.empty? -%> log_file=<%= @ne_log_file %> -<% end %> +<% end -%> debug=<%= @ne_debug %> @@ -27,9 +27,9 @@ allowed_hosts=127.0.0.1,::1,<%= @ne_nagios_server %> dont_blame_nrpe=<%= @ne_dont_blame_nrpe %> allow_bash_command_substitution=<%= @ne_allow_bash_cmd_subst %> -<%= if @$ne_allow_sudo == true %> +<%= if @ne_allow_sudo == true -%> command_prefix=<%= @ne_command_prefix %> -<% end %> +<% end -%> command_timeout=<%= @ne_command_timeout %> connection_timeout=<%= @ne_connection_timeout %>