Chapter 3. Private automation hub
Ansible automation hub is the central repository place for the certified collections, and functions as the main source of trusted, tested and supported content.
With private automation hub, automation developers can collaborate and publish their own automation content and deliver Ansible code more easily within their organization. It is also the central repository for Ansible validated content, which is not supported, but is trusted and tested by Red Hat and our partners.
3.1. Required shared filesystem
A high availability automation hub requires you to have a shared file system, such as NFS, already installed in your environment. Before you run the Red Hat Ansible Automation Platform installer, verify that you installed the /var/lib/pulp directory across your cluster as part of the shared file system installation. The Red Hat Ansible Automation Platform installer returns an error if /var/lib/pulp is not detected in one of your nodes, causing your high availability automation hub setup to fail.
3.2. Setting up the shared filesystem
You must mount the shared file system on each automation hub node:
Procedure
Create the
/var/lib/pulpdirectory.# mkdir /var/lib/pulp
Mount the shared filesystem (this reference environment uses an NFS share).
# mount -t nfs4 <nfs_share_ip_address>:/ /var/lib/pulp
Confirm that the shared filesystem is successfully mounted:
$ df -h
3.3. Enabling firewall services
Because of the requirement of using a shared filesystem as part of a highly available Ansible automation hub environment, the following firewall services must be enabled to ensure that the filesystem is successfully mounted.
On each Ansible automation hub node, you must:
Ensure the following
firewalldservices (nfs,mountd,rpc-bind) are enabled.# firewall-cmd --zone=public --add-service=nfs # firewall-cmd --zone=public --add-service=mountd # firewall-cmd --zone=public --add-service=rpc-bind
Reload
firewalldfor changes to take effect.# firewall-cmd --reload
Verify the
firewalldservices are enabled.# firewall-cmd --get-services