From a7659da65aeaad7d0c4aaf89e6150b8ed260f751 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 11 Nov 2009 19:31:19 -0500 Subject: its a mistake to use the puppet keyword 'debug', changed to use the original 'debuglevel' and fixed the template --- manifests/init.pp | 2 +- templates/service.conf.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 0609fb6..f3fa0d2 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -28,7 +28,7 @@ class stunnel { $cafile = false, $cert = false, $chroot = false, $ciphers = false, $client = false, $compress = false, $connect = false, $crlpath = false, $crlfile - = false, $debug = false, $delay = false, $egd = + = false, $debuglevel = false, $delay = false, $egd = false, $engine = false, $engineCtrl = false, $enginenum = false, $exec = false, $execargs = false, $failover = false, $ident = false, $key = diff --git a/templates/service.conf.erb b/templates/service.conf.erb index 84b8f17..d2fafaf 100644 --- a/templates/service.conf.erb +++ b/templates/service.conf.erb @@ -3,6 +3,7 @@ ; puppet runs, please make configuration changes to this service in puppet ; Global configuration options +<%= 'debug = ' + debuglevel %> <%= 'pid = ' + real_pid %> <%- %w{chroot setuid setgid service compression}.each do |v| if has_variable?(v) and instance_variable_get("@#{v}").to_s != "false" -%> @@ -18,7 +19,7 @@ end -%> <%= socket.map { |i| "socket = #{i}" }. join("\n") %> <% end -%> -<%- %w{debug output syslog}.each do |v| +<%- %w{output syslog}.each do |v| if has_variable?(v) and instance_variable_get("@#{v}").to_s != "false" -%> <%= v + " = " + instance_variable_get("@#{v}").to_s %> <%- @@ -44,4 +45,3 @@ end -%> end end -%> client = <%= client ? 'yes' : 'no' %> - -- cgit v1.2.3