Forum: Cfengine Help
Subject: Re: Seperating copy_from and permission promise
Author: pieterb
Link to topic: https://cfengine.com/forum/read.php?3,16834,16841#msg-16841

I'm running a relatively new version: Cfengine - 3.0.3patch1;
This is the promise I'm trying to run:


files:
"$(var_print.client_path_conf)"

   copy_from => cscp("$(var_print.master_path_conf)", "$(var.master_host)"),
   file_select => printer,
   classes => if_else("repaired","notrepaired"),
   depth_search => recurse("inf");

body copy_from cscp(from,server)
{
source      => "$(from)";
servers     => { "$(server)" , "localhost" } ;
compare     => "digest";
# check_root   => "false";
# preserve    => "no";
}



Which gives me the output:


cf3  -> File permissions on /var/test/printers/conf/printers.conf as promised
cf3  ?> defining promise result class notrepaired


Which I don't want it to do. Since I changed the printers.conf file on the 
server, I want it to return just the class 'repaired'.

Thanks,
Pieter

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

Reply via email to