Forum: CFEngine Help
Subject: context and relevance
Author: jimmathieu
Link to topic: https://cfengine.com/forum/read.php?3,24079,24079#msg-24079

Hello, I could use some help (pointing me to doc if possible) about context and 
relevance as they relate to classes.

I am trying to make a remote copy to two servers and NOT to all other servers.  
I check my promises...and they seem acceptable, but when I try to check 
promises.cf with cf-agent I am told that the promise is being skipped because 
the context is not relevant.

My attempt in promises.cf looks like...


bundle agent test5
{

classes:
   "my_class" and => { "myhost1", "myhost2" };

files:

#a comment here.

my_class::
"/etc/foo.txt"  #promiser - this is a made up file
comment => "Make foo.txt homogeneous on myhost1 and myhost2"
copy_from => secure_cp("/path/to/copy/of/foo.txt", "myhost3"),
perms => m("644");

}

What am I missing?  Why is the context not relevant?

Thanks,
Jim

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

Reply via email to