Forum: CFEngine Help
Subject: Re: vars values depending on classes
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,25068,25072#msg-25072

The problem is that the "xmx" variable is being reassigned (arguably running on 
a machine in which both "servergroup" is defined and "default_java_opts" is NOT 
defined, so both conditions apply).

If this is the intended behavior (that "xmx" maybe redefined, which is 
perfectly valid) then they should be declared with policy => "free":

vars:
servergroup::
"xmx" string => "4G"
   policy => "free";

!default_java_opts::
"xmx" string => "1G"
   policy => "free";


_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to