SmartProxy Not Appearing in Foreman

Problem:
First time setting up Foremen and Katello. I setup a SmartProxy with the below command:

foreman-installer 
  --scenario foreman-proxy-content                   
  --certs-tar-file "/root/proxy.example.org-certs.tar"                  
  --foreman-proxy-content-parent-fqdn "foreman.example.org"                   
  --foreman-proxy-register-in-foreman "true"                   
  --foreman-proxy-foreman-base-url "https://foreman.example.org"                   
  --foreman-proxy-trusted-hosts "foreman.example.org"                   
  --foreman-proxy-trusted-hosts "proxy.example.org"                  
  --foreman-proxy-oauth-consumer-key "blah" 
  --foreman-proxy-oauth-consumer-secret "blah"                   
  --puppet-server-foreman-url "https://foreman.example.org"         

The setup finishes successfully and the host appears in the “All Hosts” section in Foreman, but not under “Smart Proxies”. If I try to add a SmartProxy, it says it already exists.

Expected outcome:
I would expect the system to now appear under “Smart Proxies”.

Foreman and Proxy versions: 1.22.2

Foreman and Proxy plugin versions: Katello 3.15

Distribution and version: CentOS 7

Other relevant data:

Ok, after doing some additional Googling, I found my solution…

The SmartProxy was not placed under the “Default” organization and location. At the top of the Foreman UI, I changed the organization and location to “Any”. I now see my SmartProxy!

This is probably something I could have specified when running foreman-installer on the proxy server.

1 Like