Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
Change default mode and location when merging key #31 (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo Calixte authored Jul 27, 2018
1 parent 48d4a0b commit c98c13f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## Release 2.5.0 (July 27, 2018)

### Summary
* Change mode and location of resulting file when `merge_key` is set to true #31

## Release 2.4.0 (July 26, 2018)

### Summary
Expand Down
13 changes: 11 additions & 2 deletions manifests/site.pp
Original file line number Diff line number Diff line change
Expand Up @@ -353,15 +353,24 @@
mode => $key_dir_mode,
})

if ($merge_key) {
$substring_mode = $cert_mode[0,-3]
$_cert_mode = "${substring_mode}00"
$_cert_path = $key_path
} else {
$_cert_mode = $cert_mode
$_cert_path = $cert_path
}

if ($merge_chain or $merge_key or $merge_dhparam) {
concat { "${name}_cert_merged":
ensure => $ensure,
ensure_newline => true,
backup => false,
path => "${cert_path}/${cert}",
path => "${_cert_path}/${cert}",
owner => $owner,
group => $group,
mode => $cert_mode,
mode => $_cert_mode,
require => File[$cert_path],
notify => $service_notify,
}
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "broadinstitute-certs",
"version": "2.4.0",
"version": "2.5.0",
"author": "Riccardo Calixte <rcalixte@broadinstitute.org>",
"description": "Module for SSL certificate configuration",
"summary": "Configures and manages SSL certificate deployments, restarting services as configured.",
Expand Down

0 comments on commit c98c13f

Please sign in to comment.