From 48bbd0cd422d57b4f6278d3b64e53aaf5de787cf Mon Sep 17 00:00:00 2001 From: Justin Lambert Date: Fri, 11 Jan 2013 06:27:02 -0700 Subject: removed /etc/defalut/openvpn from all but Debian based machines, defaults cleanup on openvpn::server --- templates/server.erb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'templates/server.erb') diff --git a/templates/server.erb b/templates/server.erb index b010cbd..1ff9ba1 100644 --- a/templates/server.erb +++ b/templates/server.erb @@ -11,7 +11,9 @@ port <%= scope.lookupvar('port') %> <% end -%> group <%= scope.lookupvar('group') %> user <%= scope.lookupvar('user') %> +<% if logfile != '' -%> log-append <%= scope.lookupvar('logfile') %> +<% end -%> status <%= scope.lookupvar('status_log') %> dev <%= scope.lookupvar('dev') %> <% if scope.lookupvar('local') != '' -%> @@ -20,7 +22,9 @@ local <%= scope.lookupvar('local') %> <% if scope.lookupvar('ipp') -%> ifconfig-pool-persist <%= scope.lookupvar('name') %>/vpn-ipp.txt <% end -%> +<% if scope.lookupvar('server') != '' -%> server <%= scope.lookupvar('server') %> +<% end -%> <% scope.lookupvar('push').each do |item| -%> push <%= item %> <% end -%> -- cgit v1.2.3