I’ve had a lot of trouble getting The Foreman to do a Puppet run when I click on the gui button. Finally figured it out and wanted to document it in case someone else is struggling with this issue too.

 

My /etc/foreman-proxy/settings.d/puppet.yml:

The biggest issue I finally realized was that when foreman tried to ssh into the boxes, it was doing a key check and trying to add it to the known_hosts file and would silently fail.  After reading a few more blogs I finally found that I should just disable the check:

.ssh/config:

Since my environment is closed off I am not too worried about checking keys. To allow certain IP or Hostnames, just change the * to ip or hostname.

Written by kevin