Hey guys
I’m trying to define a “test class” where I will be performing changes on
before I push to everything. I think I’m making this overly complicated, but
I’m having issues creating a “group” or “class” of machines. Does anyone have
an example using Cfengine 3 syntax?
Here’s what I’m currently doing...
classes:
# Create a class with our hostname
"local_hostname" expression =>
usemodule("module_local_hostname","");
# The guppies that policies are tested on first. test1 = x86 solaris, test2
= sparc solaris, test3 = linux
"guppies" xor => { classmatch("machine-test1.stg"),
classmatch("test2.corp"), classmatch("machine-test3.corp") };
This bombs out, saying that the “-” character is invalid.
$ /var/cfengine/bin/cf-agent -I -K
Module protocol contained an illegal character (-) in class/variable identifier
machine-test1.stg.
Module protocol contained an illegal character (-) in class/variable identifier
machine-test1.stg.
Is there an easier way to define a class by just referring to the hostnames of
the machines I want to include?
Thanks
Mike
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine