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