Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Commit

Permalink
server.conf.erb uses 'routes', not 'push' to build pushed routes; fix…
Browse files Browse the repository at this point in the history
… README.md to reflect this
  • Loading branch information
bdha authored and jtimberman committed Dec 8, 2011
1 parent b2386ea commit b50b97c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openvpn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ These attributes are set by the cookbook by default.
* `node["openvpn"]["key_dir"]` - Location to store keys, certificates and related files. Default `/etc/openvpn/keys`.
* `node["openvpn"]["signing_ca_cert"]` - CA certificate for signing, default `/etc/openvpn/keys/ca.crt`
* `node["openvpn"]["signing_ca_key"]` - CA key for signing, default `/etc/openvpn/keys/ca.key`
* `node["openvpn"]["push"]` - Array of routes to add as `push` statements in the server.conf. Default is empty.
* `node["openvpn"]["routes"]` - Array of routes to add as `push` statements in the server.conf. Default is empty.

The following attributes are used to populate the `easy-rsa` vars file. Defaults are the same as the vars file that ships with OpenVPN.

Expand Down Expand Up @@ -96,11 +96,11 @@ Create a role for the OpenVPN server. See above for attributes that can be enter
}
)

To push routes to clients, add `node['openvpn']['push']` as an array attribute, e.g. if the internal network is 192.168.100.0/24:
To push routes to clients, add `node['openvpn']['routes']` as an array attribute, e.g. if the internal network is 192.168.100.0/24:

override_attributes(
"openvpn" => {
"push" => [
"routes" => [
"push 'route 192.168.100.0 255.255.255.0'"
]
}
Expand Down

0 comments on commit b50b97c

Please sign in to comment.