Kurt Lieber wrote:
The following stanza:

shellcommands:

  _syslog_ng._install_packages.syslog-ng_missing::
    "/usr/bin/emerge app-admin/syslog-ng > /dev/null 2>&1"
    "/sbin/rc-update add syslog-ng default > /dev/null 2>&1"

results in this error:

gold inputs # cfagent -p -f ./cf.syslog-ng
cf:cfengine::./cf.syslog-ng:37: scripts or commands must have absolute
path names
cfengine: concerns: _syslog_ng._install_packages.syslog-ng_missing::

Change *nothing* else except the hyphen (-) in the "syslog-ng_missing"
class name to an underscore (_) and it works fine:

shellcommands:

  _syslog_ng._install_packages.syslog_ng_missing::
    "/usr/bin/emerge app-admin/syslog-ng > /dev/null 2>&1"
    "/sbin/rc-update add syslog-ng default > /dev/null 2>&1"

gold inputs # cfagent -p -f ./cf.syslog-ng
gold inputs #


The fine manual doesn't mention anything about hyphens being verboten
in class names:

http://www.cfengine.org/docs/cfengine-Reference.html#Cfengine-classes

Am I missing anything?  Or is this perhaps a bug?

--kurt

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

Underscores are not allowed, Only regular identifer characters like a-z0-9 and underscore. I'm sure it says this somewhere in the docs, sorry if it was not clear

M

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

Reply via email to