I have a simple setup where all servers (<30) are on the same LAN. The
policies include heartbeat promise which always evaluates to true, this
promise runs a heartbeat script which updates a data file per server on a
common NFS share. By changing the heartbeat script (it's distributed using
cfengine) I can leave all kinds of information per server on the common NFS
share and then query these files for the information I need. Currently, I
only use this to check that cfengine in fact is running on all servers I
expect it to run on.

This setup is very crude, requires access to a writable NFS share and does
not scale well, but it works for me.

- Erlend

On 29 December 2010 20:25, Aleksey Tsalolikhin <atsaloli.t...@gmail.com>wrote:

> Here's a post on how to generate a list of all your current servers
> using Cfengine, in order to run a one-time command on them (for
> example to gather data):  http://silverwraith.com/blog/?p=72
>
> How would we do this in Cfengine?
>
> It depends on where we have a list of all the servers; or even if we
> do.  We may just have classifications of servers (using classes) and
> not have a complete list.
>
> Let's say I want a very simple report consisting of just the hostname.
> How could I run a one-time job to report the hostnames and compile
> then into a single report?
> Can community edition or Nova handle this?
>
> Aleksey
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
>
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to