Add systemd drop-in files for foreman service + others

Problem:
I want to alter the systemd service files for the foreman.service and other service files.
Whenever I run the foreman-installer command it removes any drop-in files I created previously.

As described here Foreman not creating /var/run/foreman - #7 by moritzdietz

root@foreman-test:[~] #: foreman-installer --verbose-log-level INFO
2023-07-08 00:07:14 [INFO  ] [pre_migrations] <Array> ["Executing hooks in group pre_migrations"]
2023-07-08 00:07:14 [INFO  ] [pre_migrations] <Array> ["All hooks in group pre_migrations finished"]
2023-07-08 00:07:14 [INFO  ] [boot] <Array> ["Executing hooks in group boot"]
[…]
2023-07-08 00:08:52 [INFO  ] [configure] /Stage[main]/Foreman::Config/Systemd::Dropin_file[foreman-service]/File[/etc/systemd/system/foreman.service.d/tmp-fix.conf]/ensure: removed

Expected outcome:
A way to specify either through the custom hiera file or otherwise that I want to add a drop-in file for systemd services.

I bet this is rather trivial but I cannot find out how to configure this permanently.

Foreman and Proxy versions:
Foreman 3.5.1

Foreman and Proxy plugin versions:
N/A

Distribution and version:
RHEL 8.8

Other relevant data:

N/A

It’s using the puppet/systemd module. Version 3.10.0 as it seems. /usr/share/foreman-installer/modules/systemd/metadata.json , which you can find here: https://forge.puppet.com/modules/puppet/systemd/3.10.0/readme

Ok I solved this in the other thread: Foreman not creating /var/run/foreman - #12 by moritzdietz :slight_smile:

Thanks for the link – which is exactly where I looked to solve it heh