On Tuesday, October 11, 2016 at 2:47:43 AM UTC-5, Lukas Zapletal wrote:
> > Is there some some setting or some feature I'm missing here? Should 
> > the template_url be the foreman-prime server or the proxy? I've tried 
> > both (also configured the http_port 8000 on the foreman-prime for 
> > that test) but neither worked for what it's worth.  
> It needs to be either https://foreman:443 or https://proxy:8443 (assumi 
> ng you haven't changed default ports) 

Thank you for the tips Lukas. I tried a few options you mentioned (443 or 
8443) but neither seemed to work. 

Currently I have "/etc/foreman-proxy/settings.d/templates.yml" set to.
:enabled: true

And the unattended build fails with (error from apache log):
==> httpd/access_log <== - - [12/Oct/2016:14:27:48 +0000] "GET 
/unattended/provision?token=9c9a1410-dada-4c82-b824-72d183d3ecde HTTP/1.1" 
404 218 "-" "curl/7.29.0"

However, if I telnet to 8000 and issue GET of the unattended URL 

telnet 8000
Connected to
Escape character is '^]'.
GET /unattended/provision?token=9c9a1410-dada-4c82-b824-72d183d3ecde

url --url
lang en_US.UTF-8
selinux --enforcing
keyboard us

For reference during that the log showed:
==> foreman-proxy/proxy.log <==
D, [2016-10-12T14:20:23.017328 #30738] DEBUG -- : accept:
D, [2016-10-12T14:20:26.849604 #30738] DEBUG -- : Rack::Handler::WEBrick is 
D, [2016-10-12T14:20:26.850923 #30738] DEBUG -- : Retrieving a template 
D, [2016-10-12T14:20:26.850994 #30738] DEBUG -- : HTTP headers: 
D, [2016-10-12T14:20:30.488181 #30738] DEBUG -- : Template: request for 
provision using {"token"=>"9c9a1410-dada-4c82-b824-72d183d3ecde", 
:url=>""} at george-dev.iss.gin.ntt.net
I, [2016-10-12T14:20:30.488661 #30738]  INFO -- : - - 
[12/Oct/2016:14:20:30 +0000] "GET 
/unattended/provision?token=9c9a1410-dada-4c82-b824-72d183d3ecde HTTP/1.1" 
200 5171 3.6386

D, [2016-10-12T14:20:30.488921 #30738] DEBUG -- : close:

Why would the build host not be able to get the template but I can manually 
run the URL and it work?

PS: I will keep an eye on the token expiration. The Foreman page for the 
host highlights that in red if it's expired.

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 foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
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