Forum: CFEngine Help
Subject: Re: inserting lines into crontab
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,23442,23488#msg-23488

neilhwatson Wrote:
-------------------------------------------------------
> You can design your Cf policy to allow multiple
> groups to contribute with limited interference. 
> For example read two cron files, one of yours and
> one of the dev team.  Cf combines them into a
> single list and applies it.

This would be one reason why I said that I define the config stuff in a 
separate bundle - so I can define classes and whatnot to further control the 
entries in the array which will later get merged.  In this case:


bundle agent varbundle{
vars:
  "localfile" string => "/etc/developercron";
  haslocalfile::
    "config" string => readfile("$(localfile)", "inf");
classes:
  "haslocalfile" expression => fileexists("$(localfile)");
}


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

Reply via email to