Foreman-installer enables puppet.service although puppet integration is not enabled

Problem:

I have just ran a foreman-installer on a new AlmaLinux 8 installing Katello 4.4. I have noticed at the end of the installation puppet.service is enabled and running although puppet integration has not been enabled.

Running foreman-installer like this for the very first time on this server:

[root@foreman8 ~]# foreman-installer --scenario katello \
   --foreman-initial-organization "ORG" --foreman-initial-location "Default" \
   --certs-server-ca-cert /etc/pki/tls/certs/bundle.crt \
   --certs-server-cert /etc/pki/tls/certs/foreman8.crt \
   --certs-server-key /etc/pki/tls/private/foreman8.key \
   --enable-foreman-plugin-remote-execution \
   --enable-foreman-proxy-plugin-remote-execution-ssh \
   --foreman-plugin-tasks-automatic-cleanup=true \
   --foreman-proxy-httpboot true \
   --foreman-proxy-tftp true

Expected outcome:

Don’t start puppet.service unless it’s set to be used.

Foreman and Proxy versions:
Foreman 3.2, Katello 4.4

Distribution and version:
AlmaLinux 8.5

Other relevant data:
katello.log shows it enables it:

2022-04-25 09:30:45 [DEBUG ] [configure] /Service[puppet]: Starting to evaluate the resource (1802 of 1824)
2022-04-25 09:30:45 [DEBUG ] [configure] Executing: '/bin/systemctl is-active -- puppet'
2022-04-25 09:30:45 [DEBUG ] [configure] Executing: '/bin/systemctl is-enabled -- puppet'
2022-04-25 09:30:45 [DEBUG ] [configure] Executing: '/bin/systemctl show --property=NeedDaemonReload -- puppet'
2022-04-25 09:30:45 [DEBUG ] [configure] Executing: '/bin/systemctl unmask -- puppet'
2022-04-25 09:30:45 [DEBUG ] [configure] Executing: '/bin/systemctl start -- puppet'
2022-04-25 09:30:45 [DEBUG ] [configure] Executing: '/bin/systemctl is-enabled -- puppet'
2022-04-25 09:30:45 [DEBUG ] [configure] Executing: '/bin/systemctl unmask -- puppet'
2022-04-25 09:30:45 [DEBUG ] [configure] Executing: '/bin/systemctl enable -- puppet'
2022-04-25 09:30:45 [INFO  ] [configure] /Stage[main]/Puppet::Agent::Service::Daemon/Service[puppet]/ensure: ensure changed 'stopped' to 'running'
2022-04-25 09:30:45 [DEBUG ] [configure] /Service[puppet]: The container Class[Puppet::Agent::Service::Daemon] will propagate my refresh event
2022-04-25 09:30:45 [DEBUG ] [configure] /Service[puppet]: Unscheduling refresh on Service[puppet]
2022-04-25 09:30:45 [DEBUG ] [configure] /Service[puppet]: Evaluated in 0.59 seconds

O.K. The problem is also mentioned in Connection to foreman:8140/puppet-ca/v1 failed

@ezr-ondrej is there already a redmine/github issue to track this?

No, I did not, this is something for @packaging team :thinking:
Should we track this somehow?

Given we don’t package or ship Puppet, no, this is not for at-packaging.

It might be for at-installer tho :stuck_out_tongue:

The issue is here:

And I can repro this on a fresh Katello 4.4, but not on a Satellite build I have here. Need to investigate the differences.

I’ve opened Bug #34819: Puppet Agent enabled in Katello installations, even if it should not - Installer - Foreman to track this.

Mkay, the difference is that for Katello, we deploy a default answers file with:

foreman_proxy_content: true

While in Satellite we have:

foreman_proxy_content:
  puppet: false

I still think the puppet module should just default to off…