Forum: CFEngine Help
Subject: Re: Chicken/egg Policy-server/client
Author: debheller
Link to topic: https://cfengine.com/forum/read.php?3,24752,24756#msg-24756

Pete, when you bootstrap a client to the policy host, all the files in the 
policy host's /var/cfengine/masterfiles are transferred to the client.  (I'm 
using Nova, but I believe the behavior is the same in the community version.) 
The classes defined by the host's environment, promises.cf, and other input 
files are all used to determine which promises are run.

For example, I have FreeBSD, CentOS6 and Redhat5 clients.  Classes are 
automatically set for these different environments.  In addition, I set classes 
for specific classes of hosts and promises are written such that each 
environment runs specific promises on a group of similarly defined hosts - so 
promises that are meant for a host running FreeBSD are not used on a host 
running Redhat5.  

On the other hand, there may be commonality between OS's - perhaps something 
like /etc/motd - and that is put in place on all the hosts.

In my configuration, regardless of what gets run on a client, ALL the files in 
/var/cfengine/masterfiles are copied to each client's /var/cfengine/inputs 
directory.  

HTH,
deb


Pete Ashdown Wrote:
-------------------------------------------------------
> I'm not finding detailed documentation on the
> CFengine site in regards to
> configuring both the policy-server and the client,
> I am most likely missing
> something, but the core question I have is if the
> policy-server has the
> same promises as the clients?  In
> http://www.cfengine.com/manuals/cf3-solutions.html
> #Centralized-Management -
> it has a config file but doesn't explain if you
> use the same config file
> for the clients as the policy-server?  I see
> statements in the config file
> that relate to both, but I would imagine that the
> policy-server doesn't
> fetch its own policies from itself.
> 
> Thanks in advance.
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengin
> e

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

Reply via email to