Forum: CFEngine Help
Subject: Re: Templating the solution?
Author: tjavo87
Link to topic: https://cfengine.com/forum/read.php?3,26068,26330#msg-26330

Hi,

You're right, the garbage file is not the best example. I have multiple bundles 
attached to all methods. 
An example;

bundle agent all_sudoers
{
files:

  redhat_6::

     "/etc/sudoers" 

        comment => "Copies sudoers file to host",
        copy_from => 
secure_cp("$(def.dir_masterconfigs)/all/sudoers","@(def.policy_server)"),
        perms => mog("440","root","root"),
        classes => if_repaired("copy_ok");
]




neilhwatson Wrote:
-------------------------------------------------------
> There is a time class here:
> 
> 
> bundle agent all_garbage
> {
>   files:
> 
>    Sunday.Hr12.Min00_05::
> 
> 
> If thie bundle is called outside of that time
> class no promises will be executed.  That would
> seem to explain the message you are chasing.

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

Reply via email to