summaryrefslogtreecommitdiff
path: root/puppet/modules/openvpn/templates/client_specific_config.erb
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-06-09 17:33:12 +0200
committervarac <varacanero@zeromail.org>2016-06-14 12:05:18 +0200
commitc3352b11643881c0af33dde2838b91ac88e40476 (patch)
treec8349c904a27bae730f28b02ee1ce2ca25ebd4c5 /puppet/modules/openvpn/templates/client_specific_config.erb
parentdf16f0bae5f12aae680ea8dcdec0befd27e66e2d (diff)
git subrepo clone https://leap.se/git/puppet_openvpn puppet/modules/openvpn
subrepo: subdir: "puppet/modules/openvpn" merged: "26d4edc" upstream: origin: "https://leap.se/git/puppet_openvpn" branch: "master" commit: "26d4edc" git-subrepo: version: "0.3.0" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "cb2995b"
Diffstat (limited to 'puppet/modules/openvpn/templates/client_specific_config.erb')
-rw-r--r--puppet/modules/openvpn/templates/client_specific_config.erb10
1 files changed, 10 insertions, 0 deletions
diff --git a/puppet/modules/openvpn/templates/client_specific_config.erb b/puppet/modules/openvpn/templates/client_specific_config.erb
new file mode 100644
index 00000000..62cc0e7a
--- /dev/null
+++ b/puppet/modules/openvpn/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 -%>
+