Forum: CFEngine Help
Subject: Re: CFEngine Help: Re: Copy TO Policy Server
Author: tjavo87
Link to topic: https://cfengine.com/forum/read.php?3,24525,24530#msg-24530

Bas van der Vlies Wrote:
-------------------------------------------------------
> On 01/09/2012 04:00 PM, no-re...@cfengine.com
> wrote:
> > Forum: CFEngine Help
> > Subject: Re: Copy TO Policy Server
> > Author: sauer
> > Link to topic:
> https://cfengine.com/forum/read.php?3,24515,24524#
> msg-24524
> >
> > tjavo87 Wrote:
> >> Is there a disadvantage when all the clients
> >> running the cf-serverd?
> >
> > You do want to keep in mind that cf-serverd (and
> everything else) evaluates your common bundles. 
> So, if you're doing something like running a
> moderately expensive command as a module inside
> the classes section of a common bundle, or setting
> a var based on an execresult call, etc - that will
> start happening fairly frequently as cf-serverd
> and cf-monitord periodically reevaluate your
> policy. :)
> >
> 
> That is why at our site it only parses:
>   * promises.cf
>   * cf-serverd.cf
> 
> promises.cf:
> {{{
> ## Only include the relevant configuration files
> for the different programs
> #
> server::
>      inputs          => {
>          "cf-serverd.cf",
>      };
> }}}
> 
> 
> > But that's really the only thing you need to
> bear in mind, aside from obviously making sure
> that you're opening up access in a secure way
> (only the right hosts can get to certain files,
> etc).
> >
> > _______________________________________________
> > Help-cfengine mailing list
> > Help-cfengine@cfengine.org
> >
> https://cfengine.org/mailman/listinfo/help-cfengin
> e
> 
> 
> -- 
> **************************************************
> ******************
> *  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-cfengin
> e

Thanx for the explanation.

I'm now working on a bundle to accomplish the requirements. During this task I 
have one issue.
The bundle looks like this;


bundle agent reportstoserver {

files:

    test::

       "/var/www/html/reports"
        copy_from => secure_cp("$(def.dir_reports)/.", "$(sys.host)"),
        depth_search => recurse("inf");

}



The bolded text is the issue. $sys.host should be all the clients on my 
network. Is that possible?

Thnx

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

Reply via email to