Chapter 7. Finalizing the Provisioning Configuration
7.1. Creating Custom Provisioning Templates
You can set up a provisioning template that you can use to provision multiple hosts, each having the same configuration.
Creating a Provisioning Template Using the Web UI
-
On the main menu, click Hosts
Provisioning Templates. In the Name column, select Kickstart Default iPXE or PXELinux in the list of provisioning templates.
This displays the configuration tabs where you can customize the template.
- On the Association tab, select the appropriate operating system and click Submit.
In the Name column, select the appropriate provisioning template.
If you use PXE-less discovery, you should select the Discover Red Hat kexec provisioning template.
- On the Association tab, select the appropriate operating system and click Submit.
On the main menu, click Hosts
Operating Systems and select the appropriate operating system. This displays the configuration tabs where you can customize the operating system.
- On the Partition Table tab, select Kickstart Default.
- On the Installation Media tab, ensure Default_Organization/Library/Red_Hat_6_Server_Kickstart_x86_64_6Server is visible and selected.
- On the Templates tab, select Kickstart Default from the provision drop-down list.
- Select Discovery Red Hat kexec from the kexec drop-down list and click Submit.
Creating a Provisioning Template Using Hammer CLI
Create a provisioning template.
$ hammer template create --name template_name --file path_to_template_file
If you use PXE-less discovery, you should use the kexec template type.
Add the operating system.
$ hammer template add-operatingsystem id
7.2. Creating Host Groups
You can create and configure a host group, which enables you to provision multiple hosts without the need to specify the same properties for each host. You can associate an activation key with a host group, which allows the provisioned host to be registered to the Satellite Server and associated with the selected life cycle environment, Content View, subscriptions, and so on.
Creating Host Groups Using the Web UI
-
On the main menu, click Configure
Host Groups, and then click New Host Group. On the Host Group tab, input the following values:
- Name: RHEL6Server-x86_64
- Lifecycle Environment: Default_Organization/DEV
- Content View: RHEL_6_x86_64
- Content Source: The FQDN of your Capsule (in this case the Satellite Server)
- Puppet CA: The FQDN of your Satellite
- Puppet Master: The FQDN of your Satellite
- On the Puppet Classes tab, select the motd puppet module from the list of available classes.
On the Network tab, select the following values:
- Domain: example.org
- Subnet: Provisioning_Net
- Realm: For the purposes of this example, leave this field blank. If you have configured realm management, for example IPA, select the appropriate realm here.
On the Operating System tab, select the following values:
- Architecture: x86_64
- Operating system: RHEL Server 6.5
- Media: Default_Organization/Library Red Hat Server 6.5 x86_64. In this example, this is automatically populated. If this field is not automatically populated, it means the Organization and Location associations are not correctly configured.
- Partition table: Kickstart default
- Root password: changeme
- On the Locations tab, select Default_location.
- On the Organizations tab, select Default_Organization.
- On the Activation Keys tab, select the appropriate key.
- Click Submit.