http was already enabled. That was not the problem.
Actually, it looks like a bug in the foreman proxy or a setting I did
wrong. I had setup a trusted host when I turned on http. When I turned on
the debugging logs, I found out that for some really strange reason, it was
trying to look for my puppet.yml file on the trusted host, not on the
localhost.
Here are the debug logs and the trusted host setting I used
#:trusted_hosts:
see how I forgot to uncomment trusted_hosts. This lead to the foreman
proxy for some reason looking for the settings files on that host IP.
W, [2015-04-07T23:21:20.224543 #5881] WARN – : Couldn't find settings
file 10.21.19.70/foreman_proxy.yml. Using default settings.
I, [2015-04-07T23:21:20.224902 #5881] INFO – : 'foreman_proxy' settings
were initialized with default values: :enabled: true
W, [2015-04-07T23:21:20.233648 #5881] WARN – : Couldn't find settings
file 10.21.19.70/facts.yml. Using default settings.
I, [2015-04-07T23:21:20.233897 #5881] INFO – : 'facts' module is disabled.
W, [2015-04-07T23:21:20.234070 #5881] WARN – : Couldn't find settings
file 10.21.19.70/dns.yml. Using default settings.
I, [2015-04-07T23:21:20.234311 #5881] INFO – : 'dns' module is disabled.
W, [2015-04-07T23:21:20.234430 #5881] WARN – : Couldn't find settings
file 10.21.19.70/templates.yml. Using default settings.
I, [2015-04-07T23:21:20.234538 #5881] INFO – : 'templates' module is
disabled.
W, [2015-04-07T23:21:20.234645 #5881] WARN – : Couldn't find settings
file 10.21.19.70/tftp.yml. Using default settings.
I, [2015-04-07T23:21:20.234808 #5881] INFO – : 'tftp' module is disabled.
W, [2015-04-07T23:21:20.234918 #5881] WARN – : Couldn't find settings
file 10.21.19.70/dhcp.yml. Using default settings.
I, [2015-04-07T23:21:20.235151 #5881] INFO – : 'dhcp' module is disabled.
W, [2015-04-07T23:21:20.235351 #5881] WARN – : Couldn't find settings
file 10.21.19.70/puppetca.yml. Using default settings.
I, [2015-04-07T23:21:20.235704 #5881] INFO – : 'puppetca' module is
disabled.
W, [2015-04-07T23:21:20.235916 #5881] WARN – : Couldn't find settings
file 10.21.19.70/puppet.yml. Using default settings.
I, [2015-04-07T23:21:20.236234 #5881] INFO – : 'puppet' module is
disabled.
W, [2015-04-07T23:21:20.236440 #5881] WARN – : Couldn't find settings
file 10.21.19.70/bmc.yml. Using default settings.
I, [2015-04-07T23:21:20.236644 #5881] INFO – : 'bmc' module is disabled.
W, [2015-04-07T23:21:20.236846 #5881] WARN – : Couldn't find settings
file 10.21.19.70/realm.yml. Using default settings.
I, [2015-04-07T23:21:20.237031 #5881] INFO – : 'realm' module is disabled.
But when I comment out my trusted host like this it works fine and grabs
the correct puppet settings and I was able to add the smart proxy.
#:trusted_hosts:
#- 10.21.19.70
or with both lines uncommented it also works properly.
:trusted_hosts: