Installation issues katello integration with puppet

I know i have posted a lot in support lately but i am trying to get a solution worked for our organization.
basically the issue i am experiencing is puppet agent -t generating this error even locally on the server

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed when searching for node {redacted FQDN for host}: Failed to find {redacted FQDN for host} via exec: Execution of ‘/etc/puppetlabs/puppet/node.rb {redacted FQDN for host}’ returned 1:
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

These are the installation steps i have followed

firewall-cmd
–add-port=“53/udp” --add-port=“53/tcp”
–add-port=“67/udp”
–add-port=“69/udp”
–add-port=“80/tcp” --add-port=“443/tcp”
–add-port=“8443/tcp”
–add-port=“8140/tcp”

firewall-cmd --runtime-to-permanent

dnf -y clean all
dnf -y localinstall https://yum.theforeman.org/releases/3.1/el8/x86_64/foreman-release.rpm
dnf -y localinstall https://yum.theforeman.org/katello/4.3/katello/el8/x86_64/katello-repos-latest.rpm
dnf -y install centos-release-ansible-29
dnf -y localinstall https://yum.puppet.com/puppet6-release-el-8.noarch.rpm
dnf -y module reset ruby
dnf -y module enable ruby:2.7
dnf -y config-manager --set-enabled powertools
dnf -y module reset postgresql
dnf -y module enable postgresql:12
dnf -y update
dnf -y install foreman-installer-katello

foreman-installer --scenario katello --foreman-initial-organization “MY_ORG” --foreman-initial-location “MYL” --foreman-initial-admin-username foreman --foreman-initial-admin-password starwars123
foreman-installer --enable-foreman-plugin-discovery --enable-foreman-plugin-host-reports --enable-foreman-compute-vmware --enable-foreman-plugin-monitoring --enable-foreman-plugin-puppet --enable-foreman-plugin-snapshot-management --enable-foreman-plugin-templates
–enable-foreman-plugin-remote-execution --enable-foreman-proxy-plugin-remote-execution-ssh --enable-puppet --puppet-server true --foreman-proxy-puppet true --puppet-server-ca true --foreman-proxy-puppetca true

the os i am running on is centos streams 8

Thanks in advance

Take a look at the doc link below, as I think you are missing some necessary installer flags to properly enable Puppet with katello.

https://docs.theforeman.org/3.2/Managing_Configurations_Puppet/index-katello.html#Enabling_Puppet_Integration_managing-configurations-puppet

with the below options do these need to be the FQDN_of_foremanserver.crt and key?

–puppet-server-foreman-ssl-ca /etc/pki/katello/puppet/puppet_client_ca.crt
–puppet-server-foreman-ssl-cert /etc/pki/katello/puppet/puppet_client.crt
–puppet-server-foreman-ssl-key /etc/pki/katello/puppet/puppet_client.key

I now get this error

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Class[Ntp]: parameter ‘servers’ expects an Array value, got String on node foreman.localdoman.com

These are certificates generated by the installer for you, and this options are verbatim. You dont need to do anything but copy and paste them exactly as inputs to the installer.

with those settings and following that document i still get this error

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Class[Ntp]: parameter ‘servers’ expects an Array value, got String on node foreman.localdoman.com

ok not sure if linking is allowed here but this fixed my issue with ntp