Unable to install Foreman on RHEL and CentOS

Unable to install Foreman on RHEL and CentOS:

Successfully install Foreman and Katello:

Foreman 1.18.0:

I am able to install in Ubuntu, but not working in RHEL 6,7 and CentOS. This is the error I’m getting.
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[domain-name]:Could not evaluate: Proxy (domain name)
It’s saying the Foreman is running on: 'domain name-internal IP (I have tried in AWS, Google Cloud and VMWare), but same issue.
Please help in reaching a solution.