Skip to content

Commit 0514e4a

Browse files
authored
Compatibility with camptocamp/systemd 3.x (#886)
* call systemd::systemctl::daemon_reload only if it is defined systemd::systemctl::daemon_reload was removed in camptocamp-systemd 3.0.0
1 parent 9e5164b commit 0514e4a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

manifests/service.pp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
hasrestart => true,
2323
name => $service_name,
2424
}
25-
26-
if $facts['systemd'] {
25+
if $facts['systemd'] and defined(Class['systemd::systemctl::daemon_reload']) {
2726
Class['systemd::systemctl::daemon_reload'] -> Service['rabbitmq-server']
2827
}
2928
}

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
{
7070
"name": "camptocamp/systemd",
71-
"version_requirement": ">= 2.10.0 < 3.0.0"
71+
"version_requirement": ">= 2.10.0 < 4.0.0"
7272
}
7373
],
7474
"tags": [

0 commit comments

Comments
 (0)