summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-01-19 11:07:44 +0100
committervarac <varacanero@zeromail.org>2016-01-19 22:36:38 +0100
commitd5ecb50e4d31fde0792a77d12006a26ef33e8d3f (patch)
treeaa654c328b6efac3330582fc31f437b405f8e8f3
parent45412d75d16189719c059c0368eca4bda75e6ff8 (diff)
Ensure openvpn services are running on jessie
-rw-r--r--puppet/modules/site_openvpn/manifests/server_config.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/puppet/modules/site_openvpn/manifests/server_config.pp b/puppet/modules/site_openvpn/manifests/server_config.pp
index d7f6f9eb..ca9926cc 100644
--- a/puppet/modules/site_openvpn/manifests/server_config.pp
+++ b/puppet/modules/site_openvpn/manifests/server_config.pp
@@ -213,7 +213,11 @@ define site_openvpn::server_config(
exec { "enable_systemd_${openvpn_configname}":
refreshonly => true,
command => "/bin/systemctl enable openvpn@${openvpn_configname}",
- subscribe => File["/etc/openvpn/${openvpn_configname}.conf"];
+ subscribe => File["/etc/openvpn/${openvpn_configname}.conf"],
+ notify => Service["openvpn@${openvpn_configname}"];
+ }
+ service { "openvpn@${openvpn_configname}":
+ ensure => running
}
}
}