Forum: Cfengine Help
Subject: Error when trying to define classes in "copy_from"
Author: johanwiren
Link to topic: https://cfengine.com/forum/read.php?3,19044,19044#msg-19044



files:

    myClass::

        "/etc/httpd/conf.d/proxy_ajp.conf"

            perms => u_p("600"),
            copy_from => 
secure_cp("$(g.filestore)/etc/httpd/conf.d/proxy_ajp.conf.ATST","$(g.policy_host)"),
            classes => on_change("restartHttpd"),
            action => immediate;


This gives me:
No such FnCall "on_change()" in promise @ ./filename.cf near line 122

I have also tried
classes => define("restartHttpd")
with the same result.

What am I doing wrong?
How do I define a class when the copy_from has actually changed a file?

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

Reply via email to