[Puppet Users] Re: how to stop puppet from checking a service

jcbollinger
Mon, 01 Oct 2012 22:03:50 -0000

On Monday, October 1, 2012 3:56:42 PM UTC-5, Darin Perusich
wrote:
>
> Is there an way for puppet to not check whether a service is running
> or not? I''m basically looking for the equivalent of enable =>
manual
> for Linux systems, I think. This would be useful when the service
> itself is under the control of a CRM like Pacemaker or I want to give
> control of the service to an end user, say both tomcat and glassfish
> are on the same box and they want to run one instead of the other.
>


I suspect it''s not possible to prevent Puppet from *checking* whether a
managed service is running, but it may be possible to prevent it from *
managing* whether the service is running.  Try omitting the
''ensure''
parameter altogether.

Note that if you''re not managing whether the service is running, then
the
only other thing about it you can be managing is whether it starts at boot
(via the ''enable'' parameter).  If you don''t want to
manage that either,
then just don''t declare a Service resource in the first place.



> Supposedly the Example42 modules support this by disableboot=>true,
> but that doesn''t appear to do anything other than set "enable
=>
> false" for the service and I don''t see how that stops Puppet
from
> checking whether the service is up or down.
>
>
It doesn''t, but what''s the harm in just checking?

I haven''t looked at the modules you''re talking about, but
perhaps they do
as I suggested?  It would be fairly easy to overlook complete omission of a
parameter -- much more so than to overlook a special parameter value.


John

--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit