I'm using Foreman to provision Windows baremetal hosts.
I'm using Foreman to define the host and parameters, the TFTP request on
Foreman server passes it to WDS, WDS supplies the initial setup image and
also the install image.
I have edited the setup image to pull the unattend.xml from forman (as the
I have also configured the setup image to grab a finish script from foreman
on first boot, to configure the public network and install puppet.
I run into an issue where, in order for Windows setup to progress, I have
to set the flag built to true during the first setup pass (i.e. before the
first reboot) otherwise it is stuck in a reimaging boot loop. This is ok
until i try and grab the finish script.
I'm unable to grab the finish script after the server is booted. I have
been using the X-RHN-PROVISIONING-MAC-0 header to set the MAC address as
foreman doesnt know the IP the server will end up with. That is ok for the
provision and built flag, however doesn't work for the finish script.
Getting the following error when attempting:
Started GET "/unattended/finish" for 10.250.0.133 at 2014-11-18 14:29:44
Processing by UnattendedController#finish as /
Filter chain halted as :allowed_to_install? rendered or redirected
Completed 405 Method Not Allowed in 9ms (ActiveRecord: 2.0ms)
I then did some checking and the finish script is only exposed when the
build flag is set to true.
I then attempted using using a curl request with basic auth.
curl -k -u admin:<removed>
This also is failing and trying to redirect to the login page.
<html><body>You are being <a
Any ideas or suggestions would be greatly appreciated?