Ask Your Question

Is there a https://puppet:8140/ URL to return the puppet server's hostname?

asked 2017-07-26 10:31:24 -0600

JohnsonEarls gravatar image

I am trying to verify the operation of a load balancer set up in front of our 4.x puppet servers.

Because the puppet servers potentially update at different times, I want to ensure that:

  • Initial client connections get load balanced between all available puppet servers
  • Subsequent client connections, within a timeout window, continue to go to the same puppet server as their initial client connection

This reduces the risk of talking to a puppet server with a module that has been updated, and then, for example, going to a different puppet server that has not updated yet to fetch a file from the module that was part of the update and does not yet exist on the not-yet-updated puppet server.

However, I have found no way to connect to the load balancer VIP from a client and determine the hostname of the puppet server without actually doing a puppet run, which obviously I don't want to do until I know the load balancer VIP is set up properly.

Is there any URL underneath https://puppet:8140/ that will just return server information? Or is it possible to add such a url to a puppetserver configuration? (e.g. add a URL that returns a static string)

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2017-07-26 13:06:31 -0600

Doesn't seem so PP docs: HTTP API / HTTP status method § example response

As far as I don't know, there's no designated way to extend PP-server by additional functionality. However, you can edit status.rb to fulfill your needs. Unfortunately I don't know, which variable, its name, you'd like to add to the response object.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-07-26 10:31:24 -0600

Seen: 192 times

Last updated: Jul 26 '17