Problem:
Installation on CentOS Stream 8 fails. The installer fails on postgresql installation, because it can’t detect the default version on this release. This is the installer output
2021-01-09 13:43:43 [DEBUG ] [configure] Automatically imported foreman::database from foreman/database into production
2021-01-09 13:43:43 [DEBUG ] [configure] importing '/usr/share/foreman-installer/modules/foreman/manifests/database/postgresql.pp' in env
ironment production
2021-01-09 13:43:43 [DEBUG ] [configure] Automatically imported foreman::database::postgresql from foreman/database/postgresql into produ
ction
2021-01-09 13:43:43 [DEBUG ] [configure] importing '/usr/share/foreman-installer/modules/postgresql/manifests/client.pp' in environment p
roduction
2021-01-09 13:43:43 [DEBUG ] [configure] Automatically imported postgresql::client from postgresql/client into production
2021-01-09 13:43:43 [DEBUG ] [configure] importing '/usr/share/foreman-installer/modules/postgresql/manifests/server.pp' in environment p
roduction
2021-01-09 13:43:43 [DEBUG ] [configure] Automatically imported postgresql::server from postgresql/server into production
2021-01-09 13:43:43 [DEBUG ] [configure] importing '/usr/share/foreman-installer/modules/postgresql/manifests/params.pp' in environment p
roduction
2021-01-09 13:43:43 [DEBUG ] [configure] Automatically imported postgresql::params from postgresql/params into production
2021-01-09 13:43:43 [DEBUG ] [configure] importing '/usr/share/foreman-installer/modules/postgresql/manifests/globals.pp' in environment
production
2021-01-09 13:43:43 [DEBUG ] [configure] Automatically imported postgresql::globals from postgresql/globals into production
2021-01-09 13:43:43 [ERROR ] [configure] Evaluation Error: Error while evaluating a Function Call, No preferred version defined or automatically detected. (file: /usr/share/foreman-installer/modules/postgresql/manifests/globals.pp, line: 231, column: 5) on node foreman.hu.lan
Expected outcome:
It succeeds the installation
Foreman and Proxy versions:
Last stable - 2.3 for both
Foreman and Proxy plugin versions:
this is a new installation, I’m enabling REX but it fails before this can even matter
Distribution and version:
CentOS 8 Stream
Other relevant data:
I’m not sure if we still ship our fork of puppet-postgres or not, perhaps it just needs an update. I have tried to workaround that by editting globals.pp and setting the default value, but for some reason, that didn’t help. I had to override $global_version = '10.15'
instead of trying to pick on line 229. Then it passes. I’m happy to open this as an issue, but I was not sure where this needs to be fixed now.