Foreman 3.3 Installation Fails

Problem:
Hello,
I’m trying to install foreman-installer on rhel7.9
using the Quick Start Guide…
and the foreman installer is failing for a reason I do not know.
this is the error Im getting:

 Installing : 1:foreman-installer-3.3.0-1.el7.noarch                                                                                                                                              28/28
/etc/foreman-installer/scenarios.d/foreman.migrations/20200909151007_manage_acls_on_debian.rb:1:in `block (2 levels) in load_migrations': undefined method `[]' for nil:NilClass (NoMethodError)
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migrations.rb:25:in `instance_eval'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migrations.rb:25:in `block (2 levels) in load_migrations'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migration_context.rb:10:in `instance_eval'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migration_context.rb:10:in `execute'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migrations.rb:38:in `block in run'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migrations.rb:35:in `each'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migrations.rb:35:in `run'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:325:in `run_migrations'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/kafo_configure.rb:115:in `initialize'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `new'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/kafo_configure.rb:50:in `run'
        from /sbin/foreman-installer:8:in `<main>'
warning: %post(foreman-installer-1:3.3.0-1.el7.noarch) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package 1:foreman-installer-3.3.0-1.el7.noarch

can anyone please help to overcome this issue?

Expected outcome:
Success installation

Foreman and Proxy versions:
Foreman 3.3
Foreman and Proxy plugin versions:

Distribution and version:
RHEL 7.9

Other relevant data:

Can you confirm what version of puppet-agent is installed and being used?

puppet-agent.x86_64 7.17.0-1.el8.
this is weird, I have added https://yum.puppet.com/puppet7-release-el-7.noarch.rpm repo
why does it install el8?

That is strange, I tested the quickstart workflow myself and got the installer installed without issue. Perhaps try again fresh?

I will do that and update

same result…

Installing : puppet-agent-7.17.0-1.el8.x86_64                                                                                                                                                    27/28
  Installing : 1:foreman-installer-3.3.0-1.el7.noarch                                                                                                                                              28/28
/etc/foreman-installer/scenarios.d/foreman.migrations/20200909151007_manage_acls_on_debian.rb:1:in `block (2 levels) in load_migrations': undefined method `[]' for nil:NilClass (NoMethodError)
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migrations.rb:25:in `instance_eval'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migrations.rb:25:in `block (2 levels) in load_migrations'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migration_context.rb:10:in `instance_eval'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migration_context.rb:10:in `execute'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migrations.rb:38:in `block in run'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migrations.rb:35:in `each'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migrations.rb:35:in `run'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:325:in `run_migrations'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/kafo_configure.rb:115:in `initialize'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `new'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/kafo_configure.rb:50:in `run'
        from /sbin/foreman-installer:8:in `<main>'
warning: %post(foreman-installer-1:3.3.0-1.el7.noarch) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package 1:foreman-installer-3.3.0-1.el7.noarchInstalling : puppet-agent-7.17.0-1.el8.x86_64                                                                                                                                                    27/28
  Installing : 1:foreman-installer-3.3.0-1.el7.noarch                                                                                                                                              28/28
/etc/foreman-installer/scenarios.d/foreman.migrations/20200909151007_manage_acls_on_debian.rb:1:in `block (2 levels) in load_migrations': undefined method `[]' for nil:NilClass (NoMethodError)
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migrations.rb:25:in `instance_eval'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migrations.rb:25:in `block (2 levels) in load_migrations'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migration_context.rb:10:in `instance_eval'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migration_context.rb:10:in `execute'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migrations.rb:38:in `block in run'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migrations.rb:35:in `each'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/migrations.rb:35:in `run'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/configuration.rb:325:in `run_migrations'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/kafo_configure.rb:115:in `initialize'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `new'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/kafo-6.4.0/lib/kafo/kafo_configure.rb:50:in `run'
        from /sbin/foreman-installer:8:in `<main>'
warning: %post(foreman-installer-1:3.3.0-1.el7.noarch) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package 1:foreman-installer-3.3.0-1.el7.noarch

can you think on a workaround/soluting?

So I have found a workaround.
I installed a puppet agent that is satisfied for el7, in my case puppet agent 7.16,
by doing so when I reinstalled foreman-installer the puppet agent dependency was already satisfied.
and the foreman-installer was installed successfully. YAY !!!

Saying that it is still weird when trying to install puppet agent using the puppet-release7
repo, puppet agent for el8 is installed.
I have probably messed up some configurations…