help-cfengine
[Top][All Lists]
Advanced

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

Re: works in 2.0.8p1, doesn't work in 2.1.0b4/5


From: Kurt Lieber
Subject: Re: works in 2.0.8p1, doesn't work in 2.1.0b4/5
Date: Sun, 12 Oct 2003 12:38:26 -0400
User-agent: Mutt/1.5.4i

On Sun, Oct 12, 2003 at 05:55:42PM +0200 or thereabouts, Mark.Burgess@iu.hio.no 
wrote:
> I have tested this example here and it seems to wrk fine.
> 
> Check with -p -d3 that the relevant rule has been loaded,
> i.e. that the class "all" is properly defined.

Sorry -- that was my typo in the email.  s/all/any/

However, it's not just that one part that doesn't work -- that section was
just there to try and debug the problem.  Anything outside of updating cf
configuration files appears to fail under 2.1.0.

In my main cfagent.conf file, I import the following classes:

-------------------------------------------------------------------------
import:
        any::
                cf.groups
                cf.fileperms
                cf.directoryperms
                cf.ntp
                cf.syslog
                cf.sshd
-------------------------------------------------------------------------

As an example, cf.ntp is:

-------------------------------------------------------------------------
control:
        actionsequence = ( 
                     copy._ntp
                     shellcommands._ntp
                    )
        
groups:
        _ntp_server    = ( ntp.gentoo.org )
   
copy:
   _ntp.!_ntp_server::
            $(master_files)/etc/ntp.conf.default    dest=/etc/ntp.conf
                                                    define=_ntp_bounce
                                                    type=checksum
                                                    syslog=true
                                                    server=$(gold)
                                                    force=true

   _ntp._ntp_server::
            $(master_files)/etc/ntp.conf.ntpserver  dest=/etc/ntp.conf
                                                    define=_ntp_bounce
                                                    type=checksum
                                                    syslog=true
                                                    server=$(gold)
                                                    force=true

shellcommands:
        _ntp._ntp_bounce::
        "/etc/init.d/ntpd restart"
-------------------------------------------------------------------------

(the 'force=true' directives are in there as a troubleshooting step --
they're not normally included) 

The other configuration files are all quite similar, using '_<service
name>' as a class definition.

Running 'cfagent -p -d3' shows that all these classes are available:

-------------------------------------------------------------------------
Installable classes = ( _fileperms _directoryperms _ntp _ntp_bounce _syslog 
_syslog_bounce _sshd _sshd_bounce )
-------------------------------------------------------------------------

Again, everything works perfectly if I'm running 2.0.8p1.  Upgrading to
2.1.0b4 or b5 causes all of the above class files to not work.  (other
things may fail too -- the only thing that I know for sure that works is
updating of cf configuration files)

--kurt


Attachment: pgptLlZcY35Ts.pgp
Description: PGP signature


reply via email to

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