To fix the problem that I was having:
- I configured the unattended/provision URL to [HTTP] in :
[Administer>Settings>General] & [Administer>Settings>Provisioning].
- Additionally I uncommented/added
:http_port: 80 in [/etc/foreman-proxy/settings.yml]
- Then restarted the foreman service.
Attempt #1:
Provision on the Discovered Host. Managed flag enabled on the primary interface and pointing to the external DNS server in our configured subnet.
Got this error:
“There was an error rendering the Kickstart default template: ERF42-7327 [Foreman::Exception]: The snippet ‘puppet.conf’ threw an error: undefined method ‘#present?’ for Safemode::Jail (Environment)”
After looking around online for a while, I found (Fixes #32772 - allow present? on ApplicationRecord by ezr-ondrej · Pull Request #8581 · theforeman/foreman · GitHub)
- Applied the patch locally and reset the foreman service.
Attempt #2:
Success! Kickstart file was found and loaded during provisioning. Discovered Host installs centOS 7.2 with no errors.