Skip to content

Commit

Permalink
Cookbook fix for issue #73 (OpenVPN won't start on CentOS 7).
Browse files Browse the repository at this point in the history
  • Loading branch information
flaccid committed Feb 21, 2016
1 parent a9d90db commit 7c3a853
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions recipes/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
# limitations under the License.
#

# ensure inclusion of client recipe sets the correct type
node.override['openvpn']['type'] = 'client'

include_recipe 'openvpn::install'
include_recipe 'openvpn::service'

Expand Down
6 changes: 3 additions & 3 deletions recipes/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
case node['platform_family']
when 'rhel'
if node['platform_version'] >= '7'
link '/etc/systemd/system/multi-user.target.wants/openvpn@server.service' do
link "/etc/systemd/system/multi-user.target.wants/openvpn@#{node['openvpn']['type']}.service" do
to '/usr/lib/systemd/system/[email protected]'
end
service_name = 'openvpn@server.service'
service_name = "openvpn@#{node['openvpn']['type']}.service"
else
service_name = 'openvpn'
end
when 'arch'
service_name = 'openvpn@server.service'
service_name = "openvpn@#{node['openvpn']['type']}.service"
else
service_name = 'openvpn'
end
Expand Down

0 comments on commit 7c3a853

Please sign in to comment.