Hello,

I'm trying to get template file with different values for different envs. So 
I'm using expand_template and trying to get different values like in Neil's 
example (http://watson-wilson.ca/2011/05/template-files-using-cfengine.html)

Piece of my conf:

bundle agent jboss_install
{
classes:

    "jboss_installed" expression => fileexists("/usr/local/$(jboss)/");
    "default_java_opts" expression => classmatch("servergroup.*");

vars:
     servergroup::
         "xmx" string => "4G"

     !default_java_opts::
         "xmx" string => "1G"
...
}
servergroup.* actually is: servergroup_app or => { "10_1_100_1" }

What i want to achieve is to have default options for not defined host groups.
And when i run agent is says:
Duplicate selection of value for variable "xms" in scope jboss_install

So if anyone have ideas how to fix this, help please.
Thanks in advance.
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to