From 6556e1b7648764ca4a9200e66c3df9d83d9f60b2 Mon Sep 17 00:00:00 2001 From: Steffen Zieger Date: Sat, 5 Oct 2013 16:53:05 +0200 Subject: fix variables in templates --- templates/database.conf.erb | 6 +++--- templates/imfile.erb | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'templates') diff --git a/templates/database.conf.erb b/templates/database.conf.erb index 174cef2..3934d6c 100644 --- a/templates/database.conf.erb +++ b/templates/database.conf.erb @@ -1,6 +1,6 @@ # File is managed by Puppet -## Configuration file for rsyslog-<%= backend %> +## Configuration file for rsyslog-<%= @backend %> -$ModLoad <%= db_module %> -*.* :<%= db_module -%>:<%= server -%>,<%= database -%>,<%= username -%>,<%= password %> +$ModLoad <%= @db_module %> +*.* :<%= @db_module -%>:<%= @server -%>,<%= @database -%>,<%= @username -%>,<%= @password %> diff --git a/templates/imfile.erb b/templates/imfile.erb index 31d3ec2..0540158 100644 --- a/templates/imfile.erb +++ b/templates/imfile.erb @@ -1,11 +1,11 @@ $ModLoad imfile -$InputFileName <%= file_name %> -$InputFileTag <%= file_tag %> -$InputFileStateFile state-<%= name %> -$InputFileSeverity <%= file_severity %> -$InputFileFacility <%= file_facility %> -$InputFilePollInterval <%= polling_interval %> +$InputFileName <%= @file_name %> +$InputFileTag <%= @file_tag %> +$InputFileStateFile state-<%= @name %> +$InputFileSeverity <%= @file_severity %> +$InputFileFacility <%= @file_facility %> +$InputFilePollInterval <%= @polling_interval %> <% if run_file_monitor == true -%> $InputRunFileMonitor <% end -%> -- cgit v1.2.3