help-cfengine
[Top][All Lists]
Advanced

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

Re: Hard and Evaluated classes


From: Mark . Burgess
Subject: Re: Hard and Evaluated classes
Date: Wed, 19 Jan 2005 07:10:51 +0100 (MET)

You seem to have a space between Strcmp and () which is probably
causing this to be misinterpreted.
M

On 18 Jan, Pe5kyTac0 wrote:
> Surely I didn't write such a hard question as to no one knows the 
> answer. Any comments from anyone?
> 
> Thanks
> 
> Pe5kyTac0 wrote:
>> Hi All
>> 
>> OS: Debian Linux Sarge
>> Cfengine: Cfengine 2.1.10-2 (From Apt-Get)
>> ------------------------------------------
>> 
>> When building a compound class, can
>> both Hard and Evaluated classes be used
>> in the same compound class?
>> 
>> So far
>> compound hard classes work,
>> single evaluated class works
>> But
>> Compound hard and evaluated class
>> do not work in the same compound class.
>> 
>> Below is an example
>> ----------------------------------
>> control:
>> 
>>     DebianVersion = ( ExecResult(/bin/cat /etc/debian_version) )
>>     Deb31         = ( "3.1" )
>>     actionsequence = ( editfiles )
>>     
>> classes:
>>     sarge = ( Strcmp (${DebianVersion},${Deb31}) )
>>     
>> 
>> editfiles:
>>     #This class works
>>     sarge::
>>         { /home/account/myfile1
>>             EmptyEntireFilePlease
>>             AppendIfNoSuchLine "This is Debian Sarge"
>>         }
>>        
>>     #This class works
>>     linux.debian::
>>         { /home/account/myfile2
>>             EmptyEntireFilePlease
>>             AppendIfNoSuchLine "This is Debian Sarge"
>>         }
>>        
>>     #This class does not work
>>     debian.sarge::
>>         { /home/account/myfile3
>>             EmptyEntireFilePlease
>>             AppendIfNoSuchLine "This is Debian Sarge"
>>         }
>> ---------------------------
>> What I was hoping to do was have Debian broken into separate classes.
>> 
>> Examples:
>> debian.woody::
>> debian.sarge::
>> debian.sid::
>> 
>> This way changes could be handled as per the Debian configuration level.
>> Did I miss something in the documentation?
>> 
> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

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