Missing files after updates

After Linux-Updates we faced some Problems:

  • /etc/puppetlabs/puppet/autosign.conf is empty
  • /etc/puppetlabs/puppetserver/ca/signed/ is empty except the cert of the puppetserver itself
  • /etc/httpd/conf.d/05-foreman.d is empty. Symlink to additional webserver-config has been removed

Part of the yum history info:
Upgrade ansible-collection-theforeman-foreman-3.12.0-1.el8.noarch
Upgraded ansible-collection-theforeman-foreman-3.11.0-1.el8.noarch
Upgrade rubygem-foreman_ansible-12.0.5-1.fm3_7.el8.noarch
Upgraded rubygem-foreman_ansible-12.0.4-1.fm3_7.el8.noarch
Upgrade rubygem-foreman_remote_execution-10.0.5-1.fm3_7.el8.noarch
Upgraded rubygem-foreman_remote_execution-10.0.1-1.fm3_7.el8.noarch
Upgrade puppet-agent-7.24.0-1.el8.x86_64
Upgraded puppet-agent-7.23.0-1.el8.x86_64
Upgrade puppetserver-7.11.0-1.el8.noarch
Upgraded puppetserver-7.9.5-1.el8.noarch
Upgrade httpd-2.4.37-56.module+el8.8.0+18758+b3a9c8da.6.x86_64
Upgraded httpd-2.4.37-51.module+el8.7.0+18026+7b169787.1.x86_64
Upgrade httpd-tools-2.4.37-56.module+el8.8.0+18758+b3a9c8da.6.x86_64
Upgraded httpd-tools-2.4.37-51.module+el8.7.0+18026+7b169787.1.x86_64
Upgrade mod_http2-1.15.7-8.module+el8.8.0+18751+b4557bca.3.x86_64
Upgraded mod_http2-1.15.7-5.module+el8.6.0+13996+01710940.x86_64
Upgrade httpd-filesystem-2.4.37-56.module+el8.8.0+18758+b3a9c8da.6.noarch
Upgraded httpd-filesystem-2.4.37-51.module+el8.7.0+18026+7b169787.1.noarch

After we have restored all the files and have restarted all services it seems to work but all clients did’nt get puppet-changes. We have executed the foreman-installer with every parameter as we installed the server then everything was fine.

Do we something wrong or is this a bug?

Expected outcome:
No deletion of necessary files.

Foreman and Proxy versions:
Foreman and Proxy plugin versions:
Distribution and version:
Other relevant data:

You have to run foreman-installer after each update of dependent rpms like httpd and others as the rpms restore files which break foreman. foreman-installer will restore the correct state and remove those files.

Just run foreman-installer without any arguments. It runs the installer using the current configuration.

Hi gvde,
thank’s for this important information.
And what about the cleared files and directories?

Does anybody know why this directories/files are cleared after update?

  • /etc/puppetlabs/puppet/autosign.conf is empty
  • /etc/puppetlabs/puppetserver/ca/signed/ is empty except the cert of the puppetserver itself
  • /etc/httpd/conf.d/05-foreman.d is empty. Symlink to additional webserver-config has been removed