Thanks guys, that helped. But is it normal approach ? I mean if i want to have default xmx value for all servers that i didn't mention explicitly ?
28.02.2012, 17:05, "no-re...@cfengine.com" <no-re...@cfengine.com>: > 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 _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine