Skip to content

Commit

Permalink
Compatibility with camptocamp/systemd 3.x (voxpupuli#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

(Also change to use puppet systemd module)

(cherry picked from commit 0514e4a)
Change-Id: I33c75bbf8967d4461c0037215d2cacacf9b8788a
  • Loading branch information
TheMeier authored and onstring committed Sep 20, 2021
1 parent 98e9065 commit 095bca9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,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
4 changes: 2 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
"version_requirement": ">= 2.0.0 < 4.0.0"
},
{
"name": "camptocamp/systemd",
"version_requirement": ">= 2.1.0 < 3.0.0"
"name": "puppet/systemd",
"version_requirement": ">= 2.10.0 < 4.0.0"
}
],
"tags": [
Expand Down

0 comments on commit 095bca9

Please sign in to comment.