help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to make cfengine more verbose?


From: Wil Cooley
Subject: RE: How to make cfengine more verbose?
Date: Mon, 09 Aug 2004 16:18:16 -0700

On Mon, 2004-08-09 at 13:28, Lyndon C. Lim wrote:

> * Some variables are case sensitive, and
>   others are not.  This seems unnecessarily
>   confusing to me.  I would have preferred
>   all the reserved variables be one or the
>   other.

Yes, it does.

> * I get these occasional outputs about
>   SIGPIPE, protocol failed.  But, not always on the
>   same machine.  Appears to be a intermittent
>   failure.  How do I debug this?

Sounds something like this:

http://nakedape.cc/wiki/ApplicationNotes/CfEngine

> * How do I associate an action with an update?
>   i.e. If I update a file, like sendmail.cf,
>   I want to send a HUP to it.  But, I don't
>   want to HUP it all the time.

You can define a class if the file is updated and make the restart
conditional on the class:

####
control:
    actionsequence = ( copy shellcommands )
 
copy:
    nagios_server::
        ${configroot}/${host}/nagios/ dest=/etc/nagios
        server=${server} owner=root group=root mode=0444 type=checksum
        include=*.cfg define=nagios_needs_restart action=fix recurse=1

shellcommands:
    nagios_needs_restart::
        "/sbin/service nagios restart" useshell=dumb
####

Wil
-- 
Wil Cooley                                 wcooley@nakedape.cc
Naked Ape Consulting                        http://nakedape.cc

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]