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

Commit

Permalink
Fix service notifications (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo Calixte authored Jul 24, 2018
1 parent 8e78b79 commit aa4fa4f
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 11 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.3.2 (July 24, 2018)

### Summary
* Fix service notifications to work with global definitions as well as per-node definitions

## Release 2.3.1 (June 18, 2018)

### Summary
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ GEM
gettext-setup (~> 0.11)
minitar
semantic_puppet (~> 1.0)
puppetlabs_spec_helper (2.7.0)
puppetlabs_spec_helper (2.9.0)
mocha (~> 1.0)
puppet-lint (~> 2.0)
puppet-syntax (~> 2.0)
Expand All @@ -71,7 +71,7 @@ GEM
rspec-mocks (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-puppet (2.6.11)
rspec-puppet (2.6.12)
rspec
rspec-puppet-utils (3.4.0)
mocha
Expand All @@ -82,7 +82,7 @@ GEM
rspec-support (3.7.1)
rsync (1.0.9)
semantic_puppet (1.0.2)
spdx-licenses (1.1.0)
spdx-licenses (1.2.0)
text (1.3.1)
thor (0.20.0)

Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
String $key_ext,
String $key_mode,
String $owner,
Optional[String] $service,
Optional[String] $service = undef,
Optional[String] $source_path = undef,
Optional[String] $ca_content = undef,
Optional[String] $ca_name = undef,
Expand Down
21 changes: 16 additions & 5 deletions manifests/site.pp
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,23 @@
}
}

case $service {
undef: {
$service_notify = undef
if $service {
case $service {
undef: {
$service_notify = undef
}
default: {
$service_notify = Service[$service]
}
}
default: {
$service_notify = Service[$service]
} else {
case $::certs::service {
undef: {
$service_notify = undef
}
default: {
$service_notify = Service[$service]
}
}
}

Expand Down
5 changes: 3 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "broadinstitute-certs",
"version": "2.3.1",
"version": "2.3.2",
"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 Expand Up @@ -56,7 +56,8 @@
"operatingsystem": "SuSE",
"operatingsystemrelease": [
"11SP4",
"12SP3"
"12SP3",
"15"
]
}
],
Expand Down

0 comments on commit aa4fa4f

Please sign in to comment.