Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-721

Bootstrap to hostname does not use the hostname for policy server communication



    • Type: Task
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.10.0
    • Component/s: Bootstrap
    • Labels:


      Somebody in the IRC channel asked yesterday what would happen if they changed the IP address of their policy server, and the answer was that they would have to bootstrap all of their clients again so that policy_server.dat was updated on each client. This led a brief discussion on using a hostname for the policy server instead of an IP during bootstrap, and how that should be a legitimate option if one was happy to rely on their DNS. Somebody else then noted that even if you provide a hostname to cf-agent during bootstrap, it still writes the IP address (not the hostname provided) to policy_server.dat after doing a DNS lookup during bootstrap. The consequence of this is that the agent is always using the IP address to contact the policy server regardless of whether an IP or a hostname was provided during bootstrap (and it only looks up the IP address one time - during bootstrap). When one provides a hostname to cf-agent bootstrap instead of an IP address, their intention is often for the agent to use that hostname for all policy server communications thereafter, so that (for example) changing the IP address of the policy server would not require them to bootstrap all of their clients again.


          Issue Links



              • Assignee:
                olehermanse Ole Herman Schumacher Elgesem
                gwall Gary Wall (Inactive)
              • Votes:
                0 Vote for this issue
                9 Start watching this issue


                • Created:

                  Summary Panel