>
> Is it best practice to run cf-agent from the executor like this:
>
> exec_command =>  "$(sys.workdir)/bin/cf-agent -f failsafe.cf&&  
> $(sys.workdir)/bin/cf-agent";
>
This is good practice. I run this one slightingly different:
{{{
debian::
  cfruncommand          => "/usr/sbin/cf-agent -f failsafe.cf && 
$(sys.workdir)/bin/cf-agent";

the debian package install the binary in /usr/sbin and we copy the binary 
to sys.workdir (/var/lib/cfengine3). So we can safely update the binary.

>
> And is it best practice to have matching update and failsafe promises?
>
What do you mean by this. My failsafe just calls the update bundle, eg:
{{{

body common control
{
         bundlesequence  => { "update" };
         inputs          => { "update.cf" };
         version         => "Failsafe.cf 2.0.0";
}

body agent control
{
         any::
                 ifelapsed => "0";
                 skipidentify => "true";
}
}}}

-- 
********************************************************************
*  Bas van der Vlies                    e-mail: b...@sara.nl       *
*  SARA - Academic Computing Services   Amsterdam, The Netherlands *
********************************************************************
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to