Skip to content

Commit

Permalink
Don't fail if shared_ca directory exist
Browse files Browse the repository at this point in the history
voxpupuli#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.
  • Loading branch information
sileht committed May 3, 2016
1 parent bba1b87 commit 4893ed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,11 @@
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 {
Expand Down

0 comments on commit 4893ed8

Please sign in to comment.