Skip to content

Commit

Permalink
Compatibility with camptocamp/systemd 3.x (#886)
Browse files Browse the repository at this point in the history
* call systemd::systemctl::daemon_reload only if it is defined

systemd::systemctl::daemon_reload was removed in camptocamp-systemd
3.0.0
  • Loading branch information
TheMeier authored May 6, 2021
1 parent 9e5164b commit 0514e4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
hasrestart => true,
name => $service_name,
}

if $facts['systemd'] {
if $facts['systemd'] and defined(Class['systemd::systemctl::daemon_reload']) {
Class['systemd::systemctl::daemon_reload'] -> Service['rabbitmq-server']
}
}
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
{
"name": "camptocamp/systemd",
"version_requirement": ">= 2.10.0 < 3.0.0"
"version_requirement": ">= 2.10.0 < 4.0.0"
}
],
"tags": [
Expand Down

0 comments on commit 0514e4a

Please sign in to comment.