Hi
I am long time user of cfengine2 and just started playing with cfengine3 ( 
cfengine-3.0.3). What I am trying to accomplish is extremely simple, copy a 
file and then do an action if the file is copied over.I put up a simple config 
based on Neil Watson's tutorial and tried adding these lines to promises.cf
body common control {           bundlesequence => {           
.....................................            "copyfiles"};bundle agent 
copyfiles{
files:"/etc/ssh/sshd_config"perms => usystem("0600"),copy_from => 
umycopy("/repository/cf3/etc/ssh/ssh_config"),classes => define("reload_sshd");
commands:"/etc/init.d/sshd reload"comment => 'reload sshd',ifvarclass => 
"reload_sshd";
}
If i try to run this I get :  No such FnCall "define()" in promise @ 
/var/cfengine/inputs/promises.cf near line 72
What is the proper way of defining a class in cfengine 3 ? 
Thanks for you support




      __________________________________________________________________
Ask a question on any topic and get answers from real people. Go to Yahoo! 
Answers and share what you know at http://ca.answers.yahoo.com
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to