help-cfengine
[Top][All Lists]
Advanced

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

DefineClasses help


From: Zeev Fisher
Subject: DefineClasses help
Date: Tue, 25 Feb 2003 15:16:26 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0

I have the following in my editfiles section :

       { /etc/sysconfig/network

               BeginGroupIfNoSuchLine "NISDOMAIN=$(domain)"
                       DeleteLinesMatching "^NISDOMAIN.*"
                       Append "NISDOMAIN=$(domain)"
               EndGroup
               DefineClasses "RestartNis"
               BeginGroupIfNoSuchLine "GATEWAY=$(defaultrouter)"
                       DeleteLinesMatching "^GATEWAY.*"
                       Append "GATEWAY=$(defaultrouter)"
               EndGroup
       }

The class " RestartNis" starts not only if i something changed in the NISDOMAIN but either if the GATEWAY changes. The same thing happened if i split it like that :

{ /etc/sysconfig/network

               BeginGroupIfNoSuchLine "NISDOMAIN=$(domain)"
                       DeleteLinesMatching "^NISDOMAIN.*"
                       Append "NISDOMAIN=$(domain)"
               EndGroup
               DefineClasses "RestartNis"
}
{ /etc/sysconfig/network

               BeginGroupIfNoSuchLine "GATEWAY=$(defaultrouter)"
                       DeleteLinesMatching "^GATEWAY.*"
                       Append "GATEWAY=$(defaultrouter)"
               EndGroup
}


Does anyone has a clue why ?

--
Zeev Fisher - Unix System Administrator
Marvell Semiconductor Israel Ltd
Moshav Manof, D.N. Misgav 20184, ISRAEL
Email    -  Zeev.Fisher@il.marvell.com
Tel      -  + 972 4 8225046 ext. 2402
Cell     -  + 972 54 995402
Fax      -  + 972 4 8326420
WWW Page:     http://www.marvell.com

------------------------------------------------------------------------
This message may contain confidential, proprietary or legally privileged
information. The information is intended only for the use of the individual
or entity named above. If the reader of this message is not the
intended recipient, you are hereby notified that any dissemination, distribution
or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify us
immediately by telephone, or by e-mail and delete the message from your
computer.






reply via email to

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