diff --git a/manifests/nagios/resources/resource.pp b/manifests/nagios/resources/resource.pp index d81f166..127b10a 100644 --- a/manifests/nagios/resources/resource.pp +++ b/manifests/nagios/resources/resource.pp @@ -52,16 +52,16 @@ class cd_nagios::nagios::resources::resource ( # plugins rule cd_nagios::nagios::resources::resource_df { 'user_rule_plugins': - ng_user_arg_name => "$user1$", + ng_user_arg_name => 'user1', ng_user_arg_value => '/usr/lib64/nagios/plugins', - ng_user_arg_comment => "Sets $USER1$ to be the path to the plugins", + ng_user_arg_comment => "Sets user1 to be the path to the plugins", } # eventhandlers rule cd_nagios::nagios::resources::resource_df { 'user_rule_eventhandlers': - ng_user_arg_name => "$user2$", + ng_user_arg_name => 'user2', ng_user_arg_value => '/usr/lib64/nagios/plugins/eventhandlers', - ng_user_arg_comment => "Sets $USER1$ to be the path to the plugins", + ng_user_arg_comment => "Sets user2 to be the path to the eventhandlers", } } } diff --git a/templates/nagios/resource_cfg_rule.erb b/templates/nagios/resource_cfg_rule.erb index 65dab78..f7e1363 100644 --- a/templates/nagios/resource_cfg_rule.erb +++ b/templates/nagios/resource_cfg_rule.erb @@ -1,3 +1,3 @@ # <%= @ng_user_arg_comment %> -<%= @ng_user_arg_name %>=<%= @ng_user_arg_value %> +$<%= @ng_user_arg_name %>$=<%= @ng_user_arg_value %>