Automation Murmurings

Menu
Menu

Install Katello on CentOS 7 – Configuration (VMWare Provisioning)

Posted on September 11, 2019September 11, 2019 by Werner

Next up will be provisioning new servers automatically.

Allocate DNS proxy service

Navigate to Infrastructure -> Domains.
On the top navbar, ensure “Any Organisation” and “Any Location”. Thus is due to the Katello server now having command over the domain yet.

Click on the domain (in our case ics.dmz), click on the DNS Proxy dropdown, and select the Katello server.

The click submit.

Networking

Navigate to Infrastructure -> Subnets and click the “Create Subnet” button. Run through all the tabs (before hitting Submit) and update with the relevant info.

Allocate the domain as configured in the previous step

Parameters can be left blank for now

Allocate the correct organization and location as relevant.
Then click on Submit.

Create a compute resource

Install the VMWare package

yum install foreman-vmware
systemctl restart httpd

Navigate to Infrastructure -> Compute Resource, then click on “Create Compute Resource” button.
Select VMWare as provider, and fill in all relevant text boxes. Click on the “Load Data centers” button to get a list of data centers, which also provides a nice way to test connectivity.

Assign the correct Location and Organisation by clicking the tabs and allocating the necessary. Then, click on “Submit”.

Allocating VMWare Images for Foreman

Provisioning machines via Foreman can happen in two ways, the traditional method of booting via TFTP and doing an automated install, or by provisioning a server from a template.

Registering an existing VMWare template to Katello

From the compute resource screen, click on the “Create Image” button. Fill in the relevant data.

You are now able to provision CentOS servers either over a network install, or via the template!

If you plan to have machines provisioned over network and want to make use of a custom LVM partition, you need to add a partition template.

To do this, navigate to Hosts -> Partition Tables. For a CentOS partition, click on the clone button next to “Kickstart default”

Replace the existing partition info with this:

<%#
kind: ptable
name: Kickstart default
oses:
- CentOS
- Fedora
- RedHat
%>
zerombr
clearpart --all --initlabel
part /boot --fstype=ext3 --size=500
part pv.01 --size=11000 --grow
volgroup vg00 pv.01
logvol swap --fstype swap --vgname=vg00 --name=swap --size=5000
logvol /var/log --vgname=vg00 --name=var_log --size=5000
logvol / --vgname=vg00 --name=root --size=1 --grow
Add it to locations and organisations and click submit. Now navigate to Hosts -> Operating Systems. Select the O/S you'd like to have the partition option to, click on the "Partition Table" tab, and add the partition.

Adding support for Windows server provisioning

There is a very good blog post for that https://ramoni.com.br/2018/10/02/rlabs-provisioning-windows-with-foreman-on-vmware-from-template/

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Encrypting secrets for use by Puppet
  • Automate code deployment in Puppet Enterprise via code manager
  • Puppet Enterprise – Installation
  • Find details of runaway user
  • Using r10k to automate deployment of Puppet code.

Recent Comments

    Archives

    • November 2020
    • October 2020
    • April 2020
    • November 2019
    • September 2019
    • August 2019

    Categories

    • Katello
    • Puppet
    • Uncategorized

    Meta

    • Register
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    ©2021 Automation Murmurings | WordPress Theme by Superbthemes.com