Hi,

Thanks for the help.

I do see these services coming back up if I reboot the system. They are
brought down again when puppet run for the first time. Besides, I have never
seen Puppet calling chkconfig service off even in the first run, when the
services were in a up state after the system installation. I wonder if I
missed something.

Any other idea?

thanks,
-fred




On Mon, Aug 29, 2011 at 7:27 AM, jcbollinger <[email protected]>wrote:

>
>
> On Aug 26, 1:26 pm, Frederiko Costa <[email protected]> wrote:
> > Hi folks,
> >
> > The question I have is regarding to Service resource on Red Hat systems.
> I
> > have the following example:
> >
> > service { [ "anacron", "atd" ]:
> >        ensure => stopped,
> >         enable => false,
> >         hasrestart => true,
> >         hasstatus => true,
> >   }
> >
> > It runs fine, disabling the service while the system is up. Debugging it,
> I
> > noticed that it run the following:
> > debug: Service[atd](provider=redhat): Executing '/sbin/service atd
> status'
> > debug: Puppet::Type::Service::
> > ProviderRedhat: Executing '/sbin/chkconfig atd'
> >
> > The idea is to disable it completely, so it does not come back in the
> next
> > reboot. By running '/sbin/chkconfig atd', that does not happen. So, the
> > correct command, I think, would be '/sbin/chkconfig atd off'.
> >
> > Is there any way to accomplish this?
>
>
> Are you sure it's broken?  I strongly suspect that the Puppet agent
> runs "/sbin/chkconfig atd" as part of determining the current state of
> Service['atd'], not in an attempt to modify that state.  In
> particular, it is determining whether the service is currently
> enabled.  If the resource is already in the desired state then Puppet
> will not modify it (so you will not see '/sbin/chkconfig atd off' in
> that case).
>
>
> John
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to