help-cfengine
[Top][All Lists]
Advanced

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

Re: Setting default variable


From: Alexander Jolk
Subject: Re: Setting default variable
Date: Tue, 03 Jan 2006 15:13:11 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050927 Debian/1.7.8-1sarge3

Zeev Fisher wrote:
I would like to declare default variable and then overwrite it only if
some class is true for the host.
Current way that I know to implement it is :

!Classname::

        variable = default

Classname::

        variable = variable_value

You want
AllowRedefinitionOf = ( variable )
any::
        variable = ( default )
Classname::
        variable = ( variable_value )


Alex


--
Alexander Jolk         /         BUF Compagnie
tel +33-1 42 68 18 28 /  fax +33-1 42 68 18 29




reply via email to

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