summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRaffael Schmid <raffael@yux.ch>2013-01-19 13:21:26 +0100
committerRaffael Schmid <raffael@yux.ch>2013-01-19 13:21:26 +0100
commitf40e5ff5c9029229ad8a42c9458b2aa01bea46de (patch)
tree51025c4e746c8a2d8d593fbfc8a2ac0a58fa46e8 /templates
parent619354dca18234b2f67aaaeeb62ab618469c9cb9 (diff)
add tests and code for openvpn::client_specific_config
Diffstat (limited to 'templates')
-rw-r--r--templates/client_specific_config.erb10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/client_specific_config.erb b/templates/client_specific_config.erb
new file mode 100644
index 0000000..62cc0e7
--- /dev/null
+++ b/templates/client_specific_config.erb
@@ -0,0 +1,10 @@
+<% scope.lookupvar('iroute').each do |route| -%>
+iroute <%= route %>
+<% end -%>
+<% if ifconfig = scope.lookupvar('ifconfig') -%>
+ifconfig-push <%= ifconfig %>
+<% end -%>
+<% scope.lookupvar('dhcp_options').each do |option| -%>
+push dhcp-option <%= option %>
+<% end -%>
+