voxpupuli / puppet-keepalived

Puppet Module to manage Keepalived
https://forge.puppet.com/puppet/keepalived
Apache License 2.0
49 stars 152 forks source link

Gentoo/Debian: Enable hasstatus for service #331

Closed bastelfreak closed 6 months ago

bastelfreak commented 6 months ago

The services are deployed as proper systemd services on all OSes. When hasstatus is true, Puppet will use systemctl to check if the service is running. If it's false, Puppet will try to grep within ps for the service. That's unreliable and doesn't make any sense. See: https://www.puppet.com/docs/puppet/8/types/service.html#service-description

it's not clear why this ever was introduced: https://github.com/voxpupuli/puppet-keepalived/commit/ace4ed6aa1f269e249b84ce19a615e18b68c3cd3

Pull Request (PR) description

This Pull Request (PR) fixes the following issues