I think that, if the service is 'static' then the enable/disable state
should be disregarded.

You don't want to error out on this because you'll now have to have a
million if/else cases for every OS out there that the Providers really
should "just handle".

I would just make it a noop and note it that way in the documentation with
the description that you posted above.

Thanks,

Trevor

On Thu, Apr 7, 2016 at 2:44 PM, Michael Smith <michael.sm...@puppetlabs.com>
wrote:

> PUP-5353 <https://tickets.puppetlabs.com/browse/PUP-5353> notes an
> inconsistency between the RedHat and Systemd providers (on EL7) in how they
> treat the `static` state returned by `systemctl is-enabled`.
>
> Based on the systemctl description
> <https://www.freedesktop.org/software/systemd/man/systemctl.html> of
> `static`, this is a disabled state that cannot be enabled because it has no
> "[Install]" section.
>
> On the other hand, `chkconfig` will return that the service can be
> started, which the RedHat provider interprets as being enabled.
>
> My interpretation of `static` is that enabling the service has no meaning,
> and trying to manage whether it's enabled should fail. It's enable status
> should report `static`.
>
> My question for the mailing list is:
> - Which interpretation makes the most sense to Linux admins?
> - Would it be a breaking change to make it an error to manage the `enable`
> property of a service that can't be enabled/disabled?
>
> --
> Michael Smith
> Developer, Puppet Labs
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-dev/CABy1mMJ9wqiNwS4ha_Wgpa4ZDFxETp9JK6_H13xkAsUhqzHYcw%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-dev/CABy1mMJ9wqiNwS4ha_Wgpa4ZDFxETp9JK6_H13xkAsUhqzHYcw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699

-- This account not approved for unencrypted proprietary information --

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CANs%2BFoXyE1cNDeaXV16EPaU6qXqJoii%3DCFFmzc3j-diyZn1sYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to