cfengine/core — pull request #286 by maciejpatucha (2013-01-09 13:49:10+00:00)
Title: Implement automatic bootstrap using Avahi.

Policy server can be discovered over Zeroconf protocol using Avahi.

Avahi is discovered at runtime using dlopen.

Implemented new command line option for cf-serverd: -A. With this option
cf-serverd generates avahi configuration file in /etc/avahi/service and
restarts avahi-daemon.

cf-agent will look for policy server if only --bootstrap/-B option is
passed without an IP address. If multiple servers are found cf-agent
will print list with hostnames and IP addrresses and ask user to run
cf-agent --bootstrap --policy-server . If no server is
discovered cf-agent will exit normaly.