Problem:
Everytime I run the foreman-installer on my katello/puppet smart proxy it overrides the /etc/puppetlabs/puppet/foreman.yamlwith:
:url: "https://foreman-main.foo.com"
:ssl_ca: "/etc/pki/katello/puppet/puppet_client_ca.crt"
I then need to edit this file to update the :ssl_ca parameter to target my corporate CA used to sign the upstream foreman server (defined by :url)
I can’t seem to find any foreman-installer parameter that would allow me to specify which CA file I want to be used in foreman.yaml.
Here’s the full foreman-installer I use:
foreman-installer --scenario foreman-proxy-content \
--certs-tar-file "/root/smart-proxy.foo.com-certs.tar" \
--enable-puppet \
--puppet-server true \
--puppet-agent-server-hostname smart-proxy.foo.com \
--puppet-server-ca true \
--puppet-ca-server smart-proxy.foo.com \
--puppet-server-foreman-url "https://foreman-main.foo.com" \
--foreman-proxy-foreman-base-url "https://foreman-main.foo.com" \
--foreman-proxy-trusted-hosts "foreman-main.foo.com" \
--foreman-proxy-trusted-hosts "smart-proxy.foo.com" \
--foreman-proxy-oauth-consumer-key "yXiqLcdvfgdwv7mL4oBfX9Vt4MUbxFdE3j" \
--foreman-proxy-oauth-consumer-secret "Sb7DfBHkA4wdvwHBMJo3RjtotPnwryZs9" \
--foreman-proxy-puppet true \
--foreman-proxy-puppetca true \
--foreman-proxy-puppet-url "https://smart-proxy.foo.com:8140" \
--foreman-proxy-puppet-ssl-cert "/etc/puppetlabs/puppet/ssl/certs/smart-proxy.foo.com.pem" \
--foreman-proxy-puppet-ssl-key "/etc/puppetlabs/puppet/ssl/private_keys/smart-proxy.foo.com.pem" \
--foreman-proxy-ssl-ca "/etc/foreman-proxy/ssl_ca_combined.pem" \
--foreman-proxy-content-enable-yum true
Expected outcome:
Have an option to tell the foreman-installer which :ssl_ca file to configure in /etc/puppetlabs/puppet/foreman.yaml.
Foreman and Proxy versions: 3.17 (katello 4.19)
Distribution and version: Alma 9.7