From b2e34c73d3912b3e61b745909f35104fc5956ed2 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Tue, 3 May 2016 22:25:34 +0200 Subject: [PATCH] Don't fail if shared_ca directory exist https://github.com/luxflux/puppet-openvpn/pull/191 ensures the directory exists but when we use shared_ca, that means we will declare multiple servers with the same ca. So ensures the directory exists without failing for redeclaration. --- manifests/server.pp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/manifests/server.pp b/manifests/server.pp index f74bf898..a6b16f76 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -573,11 +573,10 @@ notify => $lnotify, } if $shared_ca { - file { "${etc_directory}/openvpn/${ca_name}": + ensure_resource(file, "${etc_directory}/openvpn/${ca_name}", { ensure => directory, mode => '0750', - notify => $lnotify, - } + }) } if $extca_enabled {