I am trying to write a promise config that will first check to see if a
directory exists. If it doesn't the run these commands. I am able to achieve
this with files incombination with the "classes => if_repaired(xyz);".  Any
suggestions?

Thank you,

CFengine 3

files:

    # directory example
    "/some/directory/."
     execute commandX
     execute commandY

    # works with files
    "/var/spool/cron/crontabs/www"
         copy_from =>

umycopy("$(content_files)/solaris/10/all/var/spool/cron/crontabs/www"),
         perms => mog("0600","www","www"),
         classes => if_repaired(restart_cron);

    <other unrelated files below>



commands:
    commandX::
    "/path/commandX";

    commandY::
    "/path/commandY";

    <other unrelated commands below>
}
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to