help-cfengine
[Top][All Lists]
Advanced

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

(1)editfiles not working as desired (2) How to define your own classes


From: Harish Chauhan
Subject: (1)editfiles not working as desired (2) How to define your own classes
Date: Tue, 24 Feb 2004 11:20:20 -0500


Hi,

(1)  I am not able to use editfiles class on AIX. I have the following settings in my configuration files :

cfagent.conf
        control:
                editfilesize = ( 0 )
        ...



update.conf
...
        editfiles:
                aix::
                        { /etc/services
                        AppendIfNoSuchLine "cfengine        5308/tcp"
                        }



Note : I tried remarking the entry in cfagent.conf for editfilesize and also by setting the editfilesize to a  very large value. In both the case my /etc/services file is not getting updated for the line. The size of /etc/services file is just 45233 bytes.


(2)  Is it possible to have a setup as shown below ? If yes, then how the cfagent.conf and update.conf should look like.

aix::
        aix_4_3_3::
                ...
                ...

        aix_5_1
                ..
               
                my_cluster_1::
                                ...
                                ...
                my_cluster_2:;


The above classes conveys that in case the machine hardclass is aix, then check for its version. If version is aix_5_1, then check if it falls in my_cluster_1 or my_cluster_2. If the machice falls in my_cluster_1 then it should do the following tasks or else check further down
               

Looking forward to your reply....

Thanks in advance
reply via email to

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