Foreaman Proxy for External DNS & DHCP Server

Hi All,

Myself configured foreman.example.com with foreman,puppet,puppetca &tftp,
want to integrate external working dhcp and dns server with foreman.

Getting an error while installing smart proxy with following steps, please
help.

  1. Installed foreman-installer
  2. copied 3 ssl certificates from foreman server to
    /var/lib/puppet/ssl/certs
    (http://www.theforeman.org/manuals/1.3/index.html#3.InstallingForeman)
  3. running following command.
    foreman-installer
    –no-enable-foreman
    –no-enable-puppet
    –puppet-server-ca=false
    –puppet-server-foreman-url=http://server.example.com
    –enable-foreman-proxy
    –foreman-proxy-tftp=false
    –foreman-proxy-dhcp=true
    –foreman-proxy-dns=true
    –foreman-proxy-foreman-base-url=http://server.example.com
    –foreman-proxy-oauth-consumer-key=Kq4GJS3GzfgfJkRM8pXgJuRREW9fpfeB
    –foreman-proxy-oauth-consumer-secret=NbyFFjdkDaVYiZnkf7oEzaApzLWDbwsG

/Stage[main]/Foreman_proxy::Service/Service[foreman-proxy]/ensure: change
from stopped to running failed: Could not start Service[foreman-proxy]:
Execution of '/sbin/service foreman-proxy start' returned 1: at
/usr/share/foreman-installer/modules/foreman_proxy/manifests/service.pp:9
/Stage[main]/Dns::Service/Service[named]/ensure: change from stopped to
running failed: Could not start Service[named]: Execution of '/sbin/service
named start' returned 2: at
/usr/share/foreman-installer/modules/dns/manifests/service.pp:8
Installing Done
[100%]
[…]
Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/foreman-installer/foreman-installer.log

[root@dhcp-dns ~]# /etc/init.d/foreman-proxy start
Starting foreman-proxy: Unable to access the SSL keys. Are the values
correct in settings.yml and do permissions allow reading?: Permission
denied - /var/lib/puppet/ssl/private_keys/dhcp-dns.example.com.pem
[FAILED]

[root@dhcp-dns ~]# ll -d
/var/lib/puppet/ssl/private_keys/dhcp-dns.example.com.pem
-rw-------. 1 puppet puppet 887 Nov 12 07:57
/var/lib/puppet/ssl/private_keys/dhcp-dns.example.com.pem
[root@dhcp-dns ~]# chmod 640
/var/lib/puppet/ssl/private_keys/dhcp-dns.example.com.pem
[root@dhcp-dns ~]# /etc/init.d/foreman-proxy start
Starting foreman-proxy: [ OK ]

While adding proxy,getting following error in browser. Please help

Unable to save
Unable to communicate with the proxy: getaddrinfo: Temporary failure in
name resolution
Please check the proxy is configured and running on the host.

Regards,
Mahesh K