Forum: CFEngine Help
Subject: Bootstrapping / Files copied
Author: tjavo87
Link to topic: https://cfengine.com/forum/read.php?3,27314,27314#msg-27314
Hi All,
Version; cfengine-community-3.3.4
OS: Red Hat Enterprise Linux
We make use of groups with methods and every host has his own promise. The
directory structure is as follows on the server;
/var/cfengine/masterfiles/promises/webserver/webserver.cf
/var/cfengine/masterfiles/promises/dnsserver/dnsserver.cf
/var/cfengine/masterfiles/promises/hosts/weba.cf
/var/cfengine/masterfiles/promises/hosts/webb.cf
/var/cfengine/masterfiles/promises/hosts/dns1.cf
/var/cfengine/masterfiles/promises/hosts/dns2.cf
A group is defined in a class;
"webserver" or => { "weba","webb" };
"dnsserver" or => { "dns1","dns2" };
During the bootstrap process /var/cfengine/masterfiles will be recursively
copied to /var/cfengine/inputs on the cliënt machine. (For example; weba)
The problem with this approach is that it also receives promises for other
groups and hosts.
One solution I can think of is that I'll create a "dynamic" promise that copies
(based on the class) files from the server to the cliënt. So on the server the
files will be placed in an other directory than masterfiles.
Did you guys have an other solution to achieve my desire??
Thanx & Regards
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine