Chapter 2. Installing the Appliances
This chapter outlines the steps for installing and configuring the Red Hat CloudForms components needed for high availability: a database cluster comprised of primary and standby database-only appliances, and two (at minimum) CloudForms appliances.
2.1. Installing the Primary Database-Only Appliance
The primary database-only appliance functions as an external database to the CloudForms appliances.
- Deploy a CloudForms appliance with an extra partition for the database at a size appropriate for your deployment. For recommendations on disk space, see Database Requirements in the Deployment Planning Guide.
-
Configure time synchronization on the appliance by editing
/etc/chronyd.confwith valid NTP server information. - SSH into the CloudForms appliance to enter the appliance console.
- Configure networking as desired by selecting the Set DHCP Network Configuration or Set Static Network Configuration option.
Re-synchronize time information across the appliances:
# systemctl enable chronyd.service # systemctl start chronyd.service
- In the appliance console, configure the hostname by selecting Set Hostname.
- Select Configure Database.
- Select Create key to create the encryption key. You can create a new key, or use an existing key on your system by selecting Fetch key from remote machine and following the prompts.
- Select Create Internal Database.
- Select the database disk. CloudForms then activates the configuration.
For Should this appliance run as a standalone database server?, select
y. Selecting this option configures this appliance as a database-only appliance, and therefore the CFME application andevmserverdprocesses will not run. This is required in highly available database deployments.WarningThis configuration is not reversible.
- Create the database password.
Do not create a region at this stage in the procedure.
You can check the configuration on the appliance console details screen. If configured successfully, Local Database Server shows as running (primary).
2.2. Installing a CloudForms Appliance
Install and configure a CloudForms appliance to point to the primary database server. This appliance does not serve as a database server.
From this appliance, you can then create a database region and configure the primary database.
After installing and configuring an empty database-only appliance in Section 2.1, “Installing the Primary Database-Only Appliance”, the steps in this section create the database schema used by CloudForms on the primary database-only appliance, and prepare the initial data. Region metadata is required to configure the primary database-only appliance as a primary node in the replication cluster.
This must be configured from the CloudForms appliance before the primary and secondary database-only appliances can be configured.
- Deploy a CloudForms appliance. There is no requirement for an extra partition on this appliance.
-
Configure time synchronization on the appliance by editing
/etc/chronyd.confwith valid NTP server information. - SSH into the CloudForms appliance to enter the appliance console.
- Configure networking as desired by selecting the Set DHCP Network Configuration or Set Static Network Configuration option.
Re-synchronize time information across the appliances:
# systemctl enable chronyd.service # systemctl start chronyd.service
- In the appliance console, configure the hostname by selecting Set Hostname.
- Select Configure Database.
Configure this appliance to use the encryption key from the primary database-only appliance:
- For Encryption Key, select Fetch key from remote machine.
- Enter the hostname for the primary database-only appliance you previously configured containing the encryption key.
- Enter the primary database-only appliance’s username.
- Enter the primary database-only appliance’s password.
-
Enter the path of the remote encryption key. (For example,
/var/www/miq/vmdb/certs/v2_key.)
Configure the database:
Select Create Region in External Database, since the database is external to the appliances.
ImportantCreating a database region will destroy any existing data and cannot be undone.
- Assign a unique database region number. Note that creating a database region will destroy any existing data and cannot be undone.
-
For Are you sure you want to continue? Select
y.
Enter the primary database-only appliance’s name and access details:
- Enter the hostname for the primary database-only appliance.
- Enter a name to identify the database.
- Enter the primary database-only appliance’s username.
- Enter a password for the database and confirm the password.
You can check the configuration on the appliance console details screen. When configured successfully, CFME Server will show as running, and CFME Database will show the name of the primary database-only appliance.
2.3. Configuring the Primary Database-Only Appliance
On the primary database-only appliance, initialize the nodes in the database cluster to configure the database replication:
- In the appliance console menu, select Configure Database Replication.
- Select Configure Server as Primary.
Set a unique identifier number for the server and enter the database name and credentials:
- Select a number to uniquely identify the node in the replication cluster.
- Enter the cluster database name.
- Enter the cluster database username.
- Enter the cluster database password and confirm the password.
Enter the primary database-only appliance hostname or IP address.
NoteThe hostname must be visible to all appliances that communicate with this database, including the CloudForms appliances and any global region databases.
-
Confirm that the replication server configuration details are correct, and select
yto apply the configuration.
2.4. Installing the Standby Database-Only Appliance
The standby database-only appliance is a copy of the primary database-only appliance and takes over the role of primary database in case of failure.
- Deploy a CloudForms appliance with an extra partition for the database that is the same size as the primary database-only appliance, as it will contain the same data. For recommendations on disk space, see Database Requirements in the Deployment Planning Guide.
-
Configure time synchronization on the appliance by editing
/etc/chronyd.confwith valid NTP server information. - SSH into the CloudForms appliance to enter the appliance console.
- Configure networking as desired by selecting the Set DHCP Network Configuration or Set Static Network Configuration option.
Re-synchronize time information across the appliances:
# systemctl enable chronyd.service # systemctl start chronyd.service
- In the appliance console, configure the hostname by selecting Set Hostname.
2.5. Configuring the Standby Database-Only Appliance
The steps to configure the standby database-only appliance are similar to that of the primary database-only appliance, in that they prepare the appliance to be database-only, but as the standby.
On the standby database-only appliance, configure the following:
- In the appliance console menu, select Configure Database Replication.
- Select Configure Server as Standby.
- Select the database disk. CloudForms then activates the configuration.
Set a unique identifier number for the standby server and enter the database name and credentials:
- Select a number to uniquely identify the node in the replication cluster.
- Enter the cluster database name.
- Enter the cluster database username.
- Enter the cluster database password.
- Enter the primary database-only appliance hostname or IP address.
Enter the standby database-only appliance hostname or IP address.
NoteThe hostname must be visible to all appliances that communicate with this database, including the engine appliances and any global region databases.
-
Select
yto configure the replication manager for automatic failover. -
Confirm that the replication standby server configuration details are correct, and select
yto apply the configuration.
The standby server will then run an initial synchronization with the primary database, and start locally in standby mode.
Verify the configuration on the appliance console details screen for the standby server. When configured successfully, Local Database Server shows as running (standby).
2.6. Installing Additional CloudForms Appliances
Install a second virtual machine with a CloudForms appliance and any additional appliances in the region using the following steps:
- Deploy a CloudForms appliance. There is no requirement for an extra partition on this appliance.
-
Configure time synchronization on the appliance by editing
/etc/chronyd.confwith valid NTP server information. - SSH into the CloudForms appliance to enter the appliance console.
- Configure networking as desired by selecting the Set DHCP Network Configuration or Set Static Network Configuration option.
Re-synchronize time information across the appliances:
# systemctl enable chronyd.service # systemctl start chronyd.service
- In the appliance console, configure the hostname by selecting Set Hostname.
- Select Configure Database.
Configure this appliance to use the encryption key from the primary database-only appliance:
- For Encryption Key, select Fetch key from remote machine.
- Enter the hostname for the primary database-only appliance you previously configured containing the encryption key.
- Enter the primary database-only appliance’s username.
- Enter the primary database-only appliance’s password.
-
Enter the path of the remote encryption key. (For example,
/var/www/miq/vmdb/certs/v2_key.) - Select Join Region in External Database from the appliance console menu.
Enter the primary database-only appliance’s name and access details:
- Enter the hostname for the primary database-only appliance.
- Enter a name to identify the database.
- Enter the primary database-only appliance’s username.
- Enter a password for the database and confirm the password.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.