So I did a little more investigation into the issue after posting my 
question yesterday.  I figured out that I can auto provision using the 
following steps:

1) discover host
2) auto provision host
3) rebuild config of auto provision host (this calls tftp proxy to create 
the pxe config which did not occur in the previous step)
4) Edit the host, set the hostname, and submit (this adds the "built 
template" so the host can tell foreman it is built at the end of 
provisioning)

With those 4 steps the host auto provisions fine.  So the question still 
stands why the tftp proxy and built template is not being associated to the 
host at the time that auto-provision is executed.

We are auto-provisioning using a custom fact in the zip extension for the 
hostname.  When we auto provision the host is created with the correct 
name.  However, if I edit the host it has the default hostname in the 
hostname field (prefix mac followed by lower case mac address).  That is 
why in step 4 I have to set the hostname even though it is already set by 
auto-provision.

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to