Hi,
I tried to do a fresh install of Foreman 3.0.1 with Katello on a CentOS 8, it worked well. Then i tried to install an external Foreman Proxy 3.0.1 on a CentOS 8 also but i got some issues.
I follow the official documentation Installing an External Smart Proxy Server 3.0.
Problem:
When i do a foreman-installer i had the errors bellow :
2021-12-17 14:30:24 [ERROR ] [configure] Evaluation Error: Error while evaluating a Resource Statement, Foreman::Plugin[puppet]:
2021-12-17 14:30:24 [ERROR ] [configure] parameter 'version' expects a String value, got Undef
2021-12-17 14:30:24 [ERROR ] [configure] parameter 'config_file_group' expects a String value, got Undef (file: /usr/share/foreman-installer/modules/foreman/manifests/plugin/puppet.pp, line: 6) on node new-foreman-proxy-fon.interne.mines-paristech.fr
I tried the solution proposed on the post Foreman installer error "parameter 'version' expects a String value, got Undef" (adding --no-enable-foreman-plugin-puppet and --no-enable-foreman-cli-puppet) but i got other errors :
2021-12-17 15:05:24 [ERROR ] [configure] Systemd start for puppetserver failed!
2021-12-17 15:05:24 [ERROR ] [configure] journalctl log for puppetserver:
2021-12-17 15:05:24 [ERROR ] [configure] -- Logs begin at Fri 2021-12-10 14:35:24 CET, end at Fri 2021-12-17 15:05:24 CET. --
2021-12-17 15:05:24 [ERROR ] [configure] Dec 17 15:04:42 test-aurel.interne.mines-paristech.fr systemd[1]: Starting puppetserver Service...
2021-12-17 15:05:24 [ERROR ] [configure] Dec 17 15:05:23 test-aurel.interne.mines-paristech.fr puppetserver[102594]: Execution error (IllegalArgumentException) at puppetlabs.trapperkeeper.services.webserver.jetty9-config/fn$get-x509s-from-ssl-cert-pem$fn (jetty9_config.clj:246).
2021-12-17 15:05:24 [ERROR ] [configure] Dec 17 15:05:23 test-aurel.interne.mines-paristech.fr puppetserver[102594]: Unable to open 'ssl-cert' file: /etc/puppetlabs/puppet/ssl/certs/test-aurel.interne.mines-paristech.fr.pem
2021-12-17 15:05:24 [ERROR ] [configure] Dec 17 15:05:23 test-aurel.interne.mines-paristech.fr puppetserver[102594]: Full report at:
Expected outcome:
An installation without errors
Foreman and Proxy versions:
foreman-release-3.0.1-1.el8.noarch
foreman-proxy-3.0.1-1.el8.noarch
Foreman and Proxy plugin versions:
[root@test-aurel ~]rpm -qa |grep foreman
foreman-installer-3.0.1-1.el8.noarch
foreman-proxy-3.0.1-1.el8.noarch
foreman-release-3.0.1-1.el8.noarch
foreman-debug-3.0.1-1.el8.noarch
Distribution and version:
CentOS Linux release 8.5.2111
Other relevant data:
Here is the complete set of commands used to install the proxy (following the documentation mentioned before):
dnf clean all
dnf localinstall -y https://yum.theforeman.org/releases/3.0/el8/x86_64/foreman-release.rpm
dnf localinstall -y https://yum.puppet.com/puppet6-release-el-8.noarch.rpm
dnf module reset ruby
dnf module -y enable ruby:2.7
dnf module -y enable postgresql:12
dnf -y update
dnf install foreman-installer
foreman-installer \
--no-enable-foreman \
--no-enable-foreman-cli \
--enable-puppet \
--puppet-server-ca=false \
--puppet-server-foreman-url=https://foreman.XXXXXXXX.fr \
--enable-foreman-proxy \
--foreman-proxy-puppetca=false \
--foreman-proxy-tftp=false \
--foreman-proxy-foreman-base-url=https://foreman.XXXXXXXX.fr \
--foreman-proxy-trusted-hosts=foreman.XXXXXXXX.fr \
--foreman-proxy-oauth-consumer-key=xxxxx \
--foreman-proxy-oauth-consumer-secret=xxxxxxx