How do people handle their cfengine test environments..

My plan so far:
Setup a cfengine test environment
1 master
3 clients (one of each type of machine)
Use CVS to track changes

After I have tested a set of promises, move to production by doing an 
update from CVS. Production will be 1 CFmaster and 60 or so machines


The issue I see is IPs/Names.
In the test environemt my test VMs will point to the CF test master (policy 
server in cf speak?).

Is this something that should be handled by variables and using one class 
for production and one for CF test environment?

Would it be something like (pseudo code.. still learning syntax...)

Vars
 Class-test::
  "polserver"     string  => "testip";
Class-Production::
  "polserver"     string  => "production-ip";

Or would it be something along the lines

Class-test::
 Vars  "polserver"     string  => "testip";

Class-production::
 Vars "polserver"     string  => "production-ip";

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

Reply via email to