Browse files

fix nil routes attribute

  • Loading branch information...
1 parent 6774225 commit ef9720dd7b2d6f45d24f2b9bb78365d8d9321a92 @jtimberman jtimberman committed Apr 22, 2011
Showing with 5 additions and 3 deletions.
  1. +2 −2 openvpn/metadata.json
  2. +1 −1 openvpn/metadata.rb
  3. +2 −0 openvpn/templates/default/server.conf.erb
View
4 openvpn/metadata.json
@@ -112,5 +112,5 @@
"openvpn": "Installs and configures openvpn",
"openvpn::users": "Sets up openvpn cert/configs for users data bag items"
},
- "version": "0.99.0"
-}
+ "version": "0.99.1"
+}
View
2 openvpn/metadata.rb
@@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs and configures openvpn and includes rake tasks for managing certs"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
-version "0.99.0"
+version "0.99.1"
recipe "openvpn", "Installs and configures openvpn"
recipe "openvpn::users", "Sets up openvpn cert/configs for users data bag items"
View
2 openvpn/templates/default/server.conf.erb
@@ -12,9 +12,11 @@ dev tun
keepalive 10 120
comp-lzo
local <%= node["openvpn"]["local"] %>
+<% if node['openvpn']['routes'] -%>
<% node["openvpn"]["routes"].each do |route| -%>
<%= route %>
<% end -%>
+<% end -%>
up /etc/openvpn/server.up.sh
# Keys and certificates.

0 comments on commit ef9720d

Please sign in to comment.