Failed running forman-maintain: Duplicate declaration: Package[katello] is already declared

Hi Evgeni,

Just back from leave but wanted to thank you Evgeni and the broader community for the effort you put in to resolving my issue. I don’t know if you can imagine the pressure this take off us. For me it was huge. Thx

For the record it turned out I needed the certs moved from puppet to Martello. Here is the remediation.

From evgeni:

Edit the answers file:
vim /etc/foreman-installer/scenarios.d/katello-answers.yaml
At line 36, you should see a “foreman” section starting.
Around line 59 you should see various server_ssl_* parameters being
set, especially server_ssl_ca, server_ssl_chain, server_ssl_cert,
server_ssl_key.
They’d be using “/etc/puppetlabs/puppet/” paths right now.
Change them to read as following:
server_ssl_ca: “/etc/pki/katello/certs/katello-default-ca.crt”
server_ssl_chain: “/etc/pki/katello/certs/katello-server-ca.crt”
server_ssl_cert: “/etc/pki/katello/certs/katello-apache.crt”
server_ssl_key: “/etc/pki/katello/private/katello-apache.key”

If your file does NOT contain the old puppetlabs values, DON’T EDIT.
Show me lines 35-60 please.

If you did edit, run the installer, show me the output :slight_smile: