diff options
author | varac <varacanero@zeromail.org> | 2016-01-16 15:27:48 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-01-16 15:27:48 +0100 |
commit | 428ff11ca95ba91a529dff7ba3a8a40c854aa39b (patch) | |
tree | 97123360911d00e01d28bb56d2378e4674946592 /puppet | |
parent | bc0737c7b20ed4f015ace177be8c1162ebe59ac9 (diff) |
[bug] Enable openvpn services on jessie
- Tested: [unstable.bitmask.net]
- Resolves: #7798
Diffstat (limited to 'puppet')
-rw-r--r-- | puppet/modules/site_openvpn/manifests/server_config.pp | 13 |
1 files changed, 13 insertions, 0 deletions
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"]; + } + } + } } |