help-cfengine
[Top][All Lists]
Advanced

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

Re: dynamis class creation


From: Alexander Mattausch
Subject: Re: dynamis class creation
Date: Tue, 16 Jul 2002 13:25:11 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.0.0) Gecko/20020529

Vilius Puidokas schrieb:

what about using cfengine's logic for classes, like:
RH72 = ( "/bin/grep 7.2 /etc/redhat-release" )
amd = ( "/bin/grep amd /etc/whatever-amd-file" )
RH = ( RH1 RH62 RH72 )

RH::
  do whats common for all RH boxes
RH.!amd-very-specific::
  except amd-very-specific boxes which conflict with RH standarts and
shouldnt be really called RH :)

RH.amd-mod::
  do whats common for all amd stuff
RH.amd-very-specific::
  do something very special

Another idea, doing about the same with a module. I have attached our script that defines a class depending on the SuSE-Version. It shoud be easy to modify it to work with RedHat.

You need to define the module path and add this line to the actionsequence (quite early, of course).

module:suseversion.suse64.suse70.suse73.suse80.suse81

Of course you need to declare the used classes, in this case it is SuSE 6.4, 7.0, 7.3, 8.0, 8.1.

Regards,
Alex

Attachment: module:suseversion
Description: application/java-vm


reply via email to

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