Proper way to apply re-configure/enable services in Foreman?

I’ve notice there are different ways to configuring things within Foreman and trying to find out which is the safest way?

For Example when doing adding multiple subnet:

1- When adding new subnets for provision you ca do this manually and it does work:
- Foreman :: Adding new subnet for provisioning
- It requires modifying dhcp.conf, zones and /var/named/dynamic
- sometimes I modify the hierra.yaml depending.
2- In some cases you can also apply using the foreman-installer switches.
- for example: foreman-installer
–foreman-proxy-dhcp=true
–foreman-proxy-dhcp-managed=true
–foreman-proxy-dhcp-interface=eth0
–foreman-proxy-dhcp-nameservers=10.0.13.1
–foreman-proxy-dhcp-range=“10.0.13.100 10.0.13.200”
–foreman-proxy-dhcp-server=10.0.13.1 \

Problem is when things go wrong I run foreman-installer to fix any issues and it seems to override everything that was manually modified.

Is there a way to apply settings on centralized location??? Perhaps in /etc/foreman-proxy/settings.d??

  • I want to be able to copy the settings/config files. Blow away and rebuild this server if something goes wrong…