In our team we have used foreman for some time to deploy our bare metal machines. We manage our internal yum repos mirrors with custom scripts outside foreman. We need to use private yum mirrors because most of our machines have no internet access. Now that we are deploying a new environment we thought it was a good opportunity to try katello and start managing the yum repos withing foreman+katello. We have the first test setup with foreman 1.16.0 + katello 3.5 mostly working but I have some doubts about what are the recommended practices when using katello.
My first doubt is that I assumed that I would be able to use the “content view” as “Installation Media” to do the initial OS deployment but I realized I cannot. What I did is to create “installation media” with url “http://my-katello-server.com/pulp/repos/Default_Organization/Library/custom/Centos_7_3/base_x86_64/” . Is this the recommended approach or should I do it differently?
After we got our first machine installed we added a parameter to the machine “kt_activation_keys=Centos_7.3” so the snippet “subscription_manager_registration” is applied and the machine is automatically registered in katello when deploying the OS. In our first test we realized that the first command in the snippet is “yum -t -y -e 0 install subscription-manager” but as the machine has no internet access it cannot install the subscription-manager rpm.
As a workaround I tried to modify the snippet to do something like “rpm -ivh http://my-katello-server.com/pulp/repos/Default_Organization/Library/custom/Centos_7_3/base_x86_64/Packages/subscription-manager.rpm” but I cannot find the subscription-manager rpm when accessing “http://my-katello-server.com/pulp/repos/Default_Organization/Library/custom/Centos_7_3/base_x86_64/Packages/” with my browser. The weird thing is that If I go to “Products >> Centos_7.3 >> Repositories >> base_x86_64 >> Packages” in the webui I can find the “subscription-manager” rpm and this repo is included in my content view.
What’s the recommended practice to register machines in katello without internet access? Can anyone explain why I see the “subscription-manager” rpm in the webui but not when accessing the repo contents with the browser?