Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
Night's Watch
-
3
-
NW - 2020-10-28
-
Bug Fix
-
-
Needs Assessment
Description
The SMF provider does not implement enableable semantics. For example, enabling a service also starts it, while disabling a service also stops it. That means if we do
enable => true,
|
ensure => stop
|
The final state of the service is undefined – it will either be stopped (and disabled from starting up at boot) or running (and enabled to start at boot). We want it to be stopped, but enabled to start up again upon a reboot.
Work in this ticket consists of refactoring the SMF provider to properly implement enableable semantics so that we get rid of this confusing case.
UPDATE: This will likely be targeted for Puppet 7 since it is a breaking change, and we could not land it in time for the Puppet 6.0 release. Closed PR is here: https://github.com/puppetlabs/puppet/pull/6993