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 98711eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -567,17 +567,17 @@
group => $group_to_set,
}

file { "${etc_directory}/openvpn/${name}":
ensure_resource('file', "${etc_directory}/openvpn/${name}", {
ensure => directory,
mode => '0750',
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 98711eb

Please sign in to comment.