Generating OAuth key/secret for foreman-installer, then DHCP fails

Problem:
I’m installing Foreman with foreman installer, using a YAML scenario. II’d like to also have a Smart Proxy on the same machine. The first run of the installer run gives an error as when it tries to register the proxy, doesn’t have valid credentials. So I have to copy the values from ‘/etc/foreman/settings.yaml’ and run again the installer.

foreman:
  # oauth_consumer_key: # How can I set it in advance?
  # oauth_consumer_secret:
foreman_proxy:
  oauth_consumer_key: {copied-from-settings.yaml} # Set after a first installer run
  oauth_consumer_secret: {copied-from-settings.yaml}

Expected outcome:

Install both foreman and foreman-proxy in a single installer run, installer is able to register DHCP

Foreman and Proxy versions:

  • foreman-3.9.1-1.el8.noarch
  • foreman-proxy-3.9.1-1.el8.noarch

Foreman and Proxy plugin versions:

N.A.

Distribution and version:

AlmaLinux 8.9

Other relevant data:

The installer then fails with error Proxy my-server-example.com has failed to load one or more features (DHCP), check /var/log/foreman-proxy/proxy.log for configuration errors but the /var/log/foreman-proxy/proxy.log file does not exist…