Disregard!  My question was answered here.  I needed to canonify the hostname 
to use underscores.
https://cfengine.com/forum/read.php?3,18006

Thanks
Mike


On 8/31/10 4:09 PM, "Mike Svoboda" <msvob...@linkedin.com> wrote:

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
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

Reply via email to