Forum: Cfengine Help Subject: Re: Cfengine Help: Please add full syslog support to community edition v.3 Author: jgreer Link to topic: https://cfengine.com/forum/read.php?3,17037,17101#msg-17101
Mark, Thanks; sorry for the misunderstanding on my part. I later realized that, in the promise where I was testing this, I had mistyped the name of the action body (so, it seems, the defaults were used?). At that point, the error message I was seeing about remote logging and Nova led me to believe syslog functionality might have been moved entirely to Nova. Glad to hear I'm wrong. I noticed something interesting in this process: if one attempts to use an undefined promise body, an error appears only to be thrown if parameters are passed to that body. For example, in this case: "/tmp/xyz" perms => permissions_mode("644"), action => i_dont_exist("inform"); I get an error: # cf-agent -dK ... Unappending > Verifying the syntax of the inputs... No such FnCall "i_dont_exist()" in promise @ /var/cfengine/inputs/promises.cf near line 87 .... When I remove the parameter from the nonexistent body, no such error is thrown, and the constraint appears to be respected, in some form: "/tmp/xyz" perms => permissions_mode("644"), action => i_dont_exist; # cf-agent -dK Appending a function call to rhs Recorded LVAL action Recorded IDRVAL i_dont_exist Subtype files syntax ok for agent CheckConstraint(files,action,i_dont_exist) Found type files's body syntax CMP-bundle # (action,acl) CMP-bundle # (action,changes) CMP-bundle # (action,copy_from) CMP-bundle # (action,create) CMP-bundle # (action,delete) CMP-bundle # (action,depth_search) CMP-bundle # (action,edit_line) CMP-bundle # (action,edit_xml) CMP-bundle # (action,edit_defaults) CMP-bundle # (action,file_select) CMP-bundle # (action,link_from) CMP-bundle # (action,move_obstructions) CMP-bundle # (action,pathtype) CMP-bundle # (action,perms) CMP-bundle # (action,rename) CMP-bundle # (action,repository) CMP-bundle # (action,touch) CMP-bundle # (action,transformer) CMP-common # action,action Found a match for lval action in the common constraint attributes Appending Constraint: action => i_dont_exist End full promise with promisee /tmp/xyz Is this by design? I think it would be helpful to get an indication that an undefined body is being used regardless of whether there are parameters passed to it. Thanks, -Jessica ------------------------- Jessica Greer Unix Infrastructure and Virtualization Information Technology Services | Yale University (203)436-5205 | jessica.gr...@yale.edu _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine