Forum: CFEngine Help
Subject: Re: Can't Bootstrap to localhost
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,26152,26153#msg-26153

I don't think there's anything that prevents you from running cf-agent without 
a policy hub, particularly if you've disabled cf-serverd. I've done it many 
times, with clean CFEngine installs and then run cf-agent against test files 
without bootstrapping first.

I do agree, though, that if you are going to bootstrap, then bootstrap to 
localhost should not be allowed. Because as we all know, temporary tests tend 
to easily turn into production code, and then someone will run into problems. 
The full reasoning is described here: 
https://github.com/cfengine/core/commit/5ec32e5cdf60f11992e96484b49725872ebea349

If you really want to do it, because you want to bootstrap and you are sure no 
other machine will connect to the hub, but you don't want to go around finding 
the machine's IP address, then one workaround is to use another localhost IP 
address, such as 127.0.1.1, as suggested by Nicolas on Twitter.

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

Reply via email to