From 2251575f0eba568947c1822d3b5ff59c4d1d945e Mon Sep 17 00:00:00 2001 From: Alexander Weidinger Date: Thu, 18 Aug 2016 12:44:00 +0200 Subject: [PATCH] fix broken namespecific rclink (Puppet 3.8.6) --- manifests/server.pp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/manifests/server.pp b/manifests/server.pp index ccd7cb34..f4e16580 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -704,7 +704,7 @@ if $::openvpn::params::namespecific_rclink { file { "/usr/local/etc/rc.d/openvpn_${name}": ensure => link, - source => "${etc_directory}/rc.d/openvpn", + target => "${etc_directory}/rc.d/openvpn", } file { "/etc/rc.conf.d/openvpn_${name}": @@ -718,7 +718,10 @@ service { "openvpn_${name}": ensure => running, enable => true, - require => File["${etc_directory}/openvpn/${name}.conf"], + require => [ + File["${etc_directory}/openvpn/${name}.conf"], + File["/usr/local/etc/rc.d/openvpn_${name}"], + ], } if !extca_enabled { Openvpn::Ca[$ca_name] -> Service["openvpn_${name}"]