Hey All,
Thank you for the responses as they sorta helped. However, Im still confused. So I thought it might be easier to try and seprate out the service of plain Foreman. IE: WithOUT Katello. But still running into troubles. So here is where Im at and where I get confused.
Foreman Core
I run the following command after adding the repos, to get default foreman running:
foreman-installer \
--foreman-initial-organization "USA" \
--foreman-initial-location "Casa Grande" \
--foreman-initial-admin-first-name "Test" \
--foreman-initial-admin-last-name "User" \
--foreman-initial-admin-username "testuser" \
--foreman-initial-admin-password "SuperSecret1" \
--verbose
Smart Proxy
- Added the same repos as above
- Bootstrap cert with:
puppet ssl bootstrap --server "sproxy1.example.com"
- Log into Foreman Core UI and sign cert above.
This is where I get confused. The docs are not very straight forward on this. The Ultimate goal is to have this Smart Proxy be able to provision bare metal laptops/desktops. However, at this point Im just trying to get the proxy installed and recognized by Foreman.
So here are the 2 sets of commands I tried.
From the QuickStart guide when clicking “Get Started” on TheForeman.org
foreman-installer \
--no-enable-foreman \
--no-enable-foreman-puppet \
--no-enable-foreman-cli \
--no-enable-foreman-cli-puppet \
--no-enable-puppet \
--enable-foreman-proxy \
--foreman-proxy-foreman-base-url=https://foreman.example.com \
--foreman-proxy-trusted-hosts=foreman.example.com \
--foreman-proxy-oauth-consumer-key=<key here> \
--foreman-proxy-oauth-consumer-secret=<secret here> \
--verbose
-
The --no-enable-foreman-puppet
option doesn’t exist. But I think it suppose to be --no-enable-foreman-plugin-puppet
-
After fixing the option it complained about the “puppet” group missing. So I added that and re-ran it, which did go through. However when check the features of this proxy it has all the same features as the foreman_core proxy. IE: Puppet, Puppet CA, Logs
So since I do not think thats what we want. I decided to try again, but this time I use this command from the NEW katello doc site.
foreman-installer \
--no-enable-foreman \
--no-enable-foreman-cli \
--enable-puppet \
--puppet-server-ca=false \
--puppet-server-foreman-url=https://foreman.example.com \
--enable-foreman-proxy \
--foreman-proxy-puppetca=false \
--foreman-proxy-tftp=false \
--foreman-proxy-foreman-base-url=https://foreman.example.com \
--foreman-proxy-trusted-hosts=foreman.example.com \
--foreman-proxy-oauth-consumer-key=oAuth_Consumer_Key \
--foreman-proxy-oauth-consumer-secret=oAuth_Consumer_Secret \
--verbose
- Still complained about group “puppet” missing, so added the puppet group, than re-ran the installer. It goes through.
So I go check the features this time and now we have just “puppet” and “logs”. So a little better I think…
Furthermore. If I go to the Puppet tab on this smart proxy and than click environments it just errors out with “Unable to get environments from Puppet”.
The Current Goal
Since Im having troubles understand what DOC to follow, What command do I run on the smart proxy to get basic connection/configuration, so that I can than add in the DNS, DHCP, TFTP servers.
The Ultimate Goal
To be able to have a Main Foreman Server in one location, than have smart proxies at each office that does baremetal provisioning.
I hope someone understands what Im asking and can lead me down the right path.
Thank you
Shawn OG