summaryrefslogtreecommitdiff
path: root/puppet/modules/site_openvpn/manifests
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-01-16 15:27:48 +0100
committervarac <varacanero@zeromail.org>2016-01-16 15:27:48 +0100
commit428ff11ca95ba91a529dff7ba3a8a40c854aa39b (patch)
tree97123360911d00e01d28bb56d2378e4674946592 /puppet/modules/site_openvpn/manifests
parentbc0737c7b20ed4f015ace177be8c1162ebe59ac9 (diff)
[bug] Enable openvpn services on jessie
- Tested: [unstable.bitmask.net] - Resolves: #7798
Diffstat (limited to 'puppet/modules/site_openvpn/manifests')
-rw-r--r--puppet/modules/site_openvpn/manifests/server_config.pp13
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"];
+ }
+ }
+ }
}