New Installation of Katello 3.16.RC5 - installer usage error


A fresh server build with Centos 7.8 and Katello 3.16.RC5. Following the installation guide after “yum install katello” I wanted to see what options I could use with the installer. As per the docs, I tried

foreman-installer --scenario katello --help

Actual output:

foreman-installer --scenario katello --help
Could not get default values, check log file at /var/log/foreman-installer/katello.log for more information

Expected outcome:

Usage information would be provided.

Foreman and Proxy plugin versions:


Distribution and version:

Centos 7.8

Other relevant data:

The installer logs says:

[ERROR 2020-08-10T12:47:51 main] Warning: /etc/foreman-installer/custom-hiera.yaml: file does not contain a valid yaml hash
Error: Evaluation Error: Error while evaluating a Function Call, ‘upcase’ parameter ‘arg’ expects a value of type Numeric, String, Array, or Hash, got Undef (file: /usr/share/foreman-installer/modules/foreman_proxy/manifests/params.pp, line: 279, column: 29) on node hostname

All values in /etc/foreman-installer/custom-hiera.yaml are currently commented out.

I’ve managed to resolve this. My server only had the shortname set in /etc/hosts and /etc/resolv.conf was without a domain stanza.

Updated /etc/hosts to contain:

w.x.y.z hostname

The installer now works as expected.

1 Like