You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feb 20 19:18:28 prd-api01 systemd[1]: Stopped api-default-queue-1.
Feb 20 19:18:28 prd-api01 systemd[1]: Started api-default-queue-1.
Suggested behaviour:
It's eventually a clash of responsibilites between systemd and puppet. Meaning: "who is, in the end, reponsible for managing the state of that unit". With harder dependencies, it seems to rather be within system`s jurisdiction, on the other hand though, when there are no hard bindings between units, it makes sense for puppet to manage that unit.
Since it obviously does not make sense for the module to try to understand the interdependency between defined units (in order to not allow enable: true for static units), I'd suggest that this module accepts "static" as a valid return-value (instead of only "enable" now, probably - not verified) for systemctl is-enabled $UNIT.
The text was updated successfully, but these errors were encountered:
Turns out I have misused the module. I tried to manage instantiated units via systemd::manage::unit_file while I should have been managing those with systemd::manage::services.
Description
systemd version: 219
module version: 2.12.0
definition of
worker.target
Definition of
api-default-queue.service
(instantiated from template) in hiera:Expected behaviour:
Puppet tries to enables that unit but realizes that it's a static unit and does nothing.
Actual behaviour
Puppet restarts the unit
leads to
Suggested behaviour:
It's eventually a clash of responsibilites between systemd and puppet. Meaning: "who is, in the end, reponsible for managing the state of that unit". With harder dependencies, it seems to rather be within system`s jurisdiction, on the other hand though, when there are no hard bindings between units, it makes sense for puppet to manage that unit.
Since it obviously does not make sense for the module to try to understand the interdependency between defined units (in order to not allow
enable: true
for static units), I'd suggest that this module accepts "static" as a valid return-value (instead of only "enable" now, probably - not verified) forsystemctl is-enabled $UNIT
.The text was updated successfully, but these errors were encountered: