From 428ff11ca95ba91a529dff7ba3a8a40c854aa39b Mon Sep 17 00:00:00 2001 From: varac Date: Sat, 16 Jan 2016 15:27:48 +0100 Subject: [bug] Enable openvpn services on jessie - Tested: [unstable.bitmask.net] - Resolves: #7798 --- puppet/modules/site_openvpn/manifests/server_config.pp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/puppet/modules/site_openvpn/manifests/server_config.pp b/puppet/modules/site_openvpn/manifests/server_config.pp index 221c79a7..d7f6f9eb 100644 --- a/puppet/modules/site_openvpn/manifests/server_config.pp +++ b/puppet/modules/site_openvpn/manifests/server_config.pp @@ -204,4 +204,17 @@ define site_openvpn::server_config( value => '3', server => $openvpn_configname; } + + # register openvpn services at systemd on nodes newer than wheezy + # see https://leap.se/code/issues/7798 + case $::operatingsystemrelease { + /^7.*/: { } + default: { + exec { "enable_systemd_${openvpn_configname}": + refreshonly => true, + command => "/bin/systemctl enable openvpn@${openvpn_configname}", + subscribe => File["/etc/openvpn/${openvpn_configname}.conf"]; + } + } + } } -- cgit v1.2.3