From bd43cc37ba2c1de8466cbee5c94a68510becbbff Mon Sep 17 00:00:00 2001 From: Justin Lambert Date: Mon, 31 Dec 2012 13:20:25 -0700 Subject: move default options to parameters --- templates/client.erb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 templates/client.erb (limited to 'templates/client.erb') diff --git a/templates/client.erb b/templates/client.erb new file mode 100644 index 0000000..3d0649b --- /dev/null +++ b/templates/client.erb @@ -0,0 +1,24 @@ +client +ca keys/ca.crt +cert keys/<%= scope.lookupvar('name') %>.crt +key keys/<%= scope.lookupvar('name') %>.key +dev <%= scope.lookupvar('dev') %> +proto <%= scope.lookupvar('proto') %> +remote <%= scope.lookupvar('remote_host') %> <%= scope.lookupvar('port') %> +<%= scope.lookupvar('compression') %> +resolv-retry <%= scope.lookupvar('resolv_retry') %> +<% if scope.lookupvar('nobind') %> +nobind +<% end %> +<% if scope.lookupvar('persist_key') %> +persist-key +<% end %> +<% if scope.lookupvar('persist_tun') %> +persist-tun +<% end %> +<% if scope.lookupvar('mute_replay_warnings') %> +mute-replay-warnings +<% end %> +ns-cert-type <%= scope.lookupvar('ns-cert-type') %> +verb <%= scope.lookupvar('verb') %> +mute <%= scope.lookupvar('mute') %> -- cgit v1.2.3