trying to install a standalone smart proxy got this errors :
Problem:
foreman-installer --no-enable-foreman --no-enable-foreman-cli --no-enable-foreman-cli-puppet --no-enable-puppet --enable-foreman-proxy --foreman-proxy-foreman-base-url=https://10.28.236.1/ --foreman-proxy-oauth-consumer-key=QSF3Zmj3gp6pK483TbMsEfTaGHiewCuN --foreman-proxy-oauth-consumer-secret=Z9spiiWRLSG5D326bNdXWGpMjMt4uHc2 --no-enable-foreman-plugin-puppet --no-enable-foreman-cli-puppet
2023-04-12 10:39:04 [WARN ] [boot] [“Unsetting environment variable ‘http_proxy’ for the duration of the install.”]
2023-04-12 10:39:04 [WARN ] [boot] [“Unsetting environment variable ‘https_proxy’ for the duration of the install.”]
2023-04-12 10:39:04 [NOTICE] [root] Loading installer configuration. This will take some time.
2023-04-12 10:39:07 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2023-04-12 10:39:07 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2023-04-12 10:39:09 [NOTICE] [configure] Starting system configuration.
2023-04-12 10:39:30 [ERROR ] [configure] Could not set groups on user[foreman-proxy]: Execution of ‘/sbin/usermod -G puppet foreman-proxy’ returned 6: usermod: group ‘puppet’ does not exist
2023-04-12 10:39:30 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Config/User[foreman-proxy]/groups: change from to ‘puppet’ failed: Could not set groups on user[foreman-proxy]: Execution of ‘/sbin/usermod -G puppet foreman-proxy’ returned 6: usermod: group ‘puppet’ does not exist
2023-04-12 10:39:30 [NOTICE] [configure] 250 configuration steps out of 270 steps complete.
2023-04-12 10:39:31 [NOTICE] [configure] System configuration has finished.
/var/log/foreman-installer/foreman.log
2023-04-12 10:39:07 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2023-04-12 10:39:30 [ERROR ] [configure] Could not set groups on user[foreman-proxy]: Execution of ‘/sbin/usermod -G puppet foreman-proxy’ returned 6: usermod: group ‘puppet’ does not exist
2023-04-12 10:39:30 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Config/User[foreman-proxy]/groups: change from to ‘puppet’ failed: Could not set groups on user[foreman-proxy]: Execution of ‘/sbin/usermod -G puppet foreman-proxy’ returned 6: usermod: group ‘puppet’ does not exist
2023-04-12 10:39:30 [INFO ] [configure] # WARN, DEBUG, ERROR, FATAL, INFO, UNKNOWN
It looks like the installer still tries to set up some Puppet functionality for your smart-proxy, despite you telling it not to. From the example in the docs, you should have all the necessary parameters, but maybe the docs are outdated. Try adding these parameters to your installer command and see if it works:
for now, there where no function, as I was trying to understand how to setup one ! (the documentation is a bit flowed on that)
well,
as of now got a " Unable to communicate with the proxy: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([SocketError]: Failed to open TCP connection " becasue my proxy will be multihome, and I don’t see how to specify the right name per interface in certs