On Tue, 3 Jan 2006, Zeev Fisher wrote:

Hi All,

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


I believe this will do what you would like:

control:
  all::
    var = ( "some default value" )
    AllowRedefinitionOf  = ( var )

  poopyHost::
    var = ( "some other value" )

  crappyHost::
    var = ( "yet another value" )

  plainHost::
    othervar = ( "I am not a poopy host, so var is still default" )

HTH,

-n


--
-------------------------------------------
nathan hruby <[EMAIL PROTECTED]>
uga enterprise information technology services
core services  support
-------------------------------------------
"In 1972 a crack commando unit was sent to
 prison by a military court for a crime they
 didn't commit...."


_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to