Foreman Proxy Registration Protocol v2 explained

In Foreman 1.22 the Proxy registration protocol changed. This blog takes a look at how it was, how it’ll be and why this is an improvement.


This is a companion discussion topic for the original entry at https://theforeman.org/2019/04/smart-proxy-capabilities-explained.html

Are there already some functions to access the providers, exposed settings and capabilities in Foreman? My idea would be to expose some settings in the Monitoring Smart Proxy and show them in the Service overview for the Smart proxy in Foreman.

There are 2 methods on the SmartProxy model:

For some examples, we can look at the Puppet module which exposes the the puppet_url setting:

I’ve opened a PR to use this:

Other examples are in the smart_proxy_pulp plugin:

These are used in https://github.com/Katello/katello/blob/master/app/models/katello/concerns/smart_proxy_extensions.rb

I’ll gladly help with patches to the monitoring.

1 Like