I've been trying to setup a smart-proxy template server in a "remote" pop 
(not in same location as foreman prime server) as suggested by a kind 
gentleman in this thread
https://groups.google.com/forum/#!topic/foreman-users/2KuJ6l2KiOo

Unfortunately I've not been able to get it to work. Here is a brief 
description.

pop1
* ESXi host1
 -forman prime (also alpha-puppet master)

pop2
* ESXi host2
 -foreman-proxy (dhcp,tftp, templates) (puppet agent of alpha-puppet 
master) interface with ip 10.0.10.10
 -testbuild host (simple host that will when built be an agent of foreman 
proxy listed directly above. provisioning ip 10.0.10.19

I've configured all of this and the initial build of testbuild get's to the 
point it needs templates (gets past the tftpboot) but fails with the 
following error from http logs:
==> httpd/access_log <==
10.0.10.19 - - [05/Oct/2016:15:19:05 +0000] "GET 
/unattended/provision?token=290e1cce-21d6-43a2-97c9-47a2d114d9b2 HTTP/1.1" 
404 218 "-" "curl/7.29.0"

templates.yml config is:
:enabled: true
:template_url: http:/10.0.10.10:8000


I did add this to settings.yml in /etc/foreman-proxy/

:http_port: 8000


I restarted the foreman-proxy and httpd on the proxy site. I refreshed the 
smart-proxy listing of the foreman-proxy on the foreman prime server and it 
then listed "Templates" (as well as dhcp/tftp).

I tested that ports responded and they did. To be thorough I disabled 
iptables/firewalld for the duration of working on this piece. 

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. 

Is there a log that would give me more information? I'm currently at 
"debug" on the foreman prime and the foreman-proxy. I've tweaked the 
configuration in various ways trying to figure out the cause but 
unfortunately nothing has resolved the problem.


-- 
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