Installing and upgrading private automation hub
Install or upgrade your private automation hub
Abstract
Preface
You can install Private Automation Hub or upgrade to a new version on a Red Hat Enterprise Linux (RHEL) 8.4 or later, or RHEL 9 or later virtual or physical machine with a valid Red Hat Ansible Automation Platform subscription.
Making open source more inclusive
Red Hat is committed to replacing problematic language in our code, documentation, and web properties. We are beginning with these four terms: master, slave, blacklist, and whitelist. Because of the enormity of this endeavor, these changes will be implemented gradually over several upcoming releases. For more details, see our CTO Chris Wright’s message.
Providing feedback on Red Hat documentation
We appreciate your feedback on our technical content and encourage you to tell us what you think. If you’d like to add comments, provide insights, correct a typo, or even ask a question, you can do so directly in the documentation.
You must have a Red Hat account and be logged in to the customer portal.
To submit documentation feedback from the customer portal, do the following:
- Select the Multi-page HTML format.
- Click the Feedback button at the top-right of the document.
- Highlight the section of text where you want to provide feedback.
- Click the Add Feedback dialog next to your highlighted text.
- Enter your feedback in the text box on the right of the page and then click Submit.
We automatically create a tracking issue each time you submit feedback. Open the link that is displayed after you click Submit and start watching the issue or add more comments.
Chapter 1. System requirements
Installing a private automation hub instance requires the following:
Table 1.1. System Requirements
| Required | |
|---|---|
| Subscription | Valid Red Hat Ansible Automation Platform |
| OS | RHEL 8.4 or later 64-bit (x86), or RHEL 9.0 or later 64-bit (x86) |
| Ansible | Version 2.14 required |
| RAM | 8 GB minimum |
| CPUs | 2 minimum |
| Disk | 60 GB dedicated hard disk space Dependent on size of collections stored |
| Browser | A currently supported version of Mozilla Firefox or Google Chrome |
| Database | PostgreSQL version 13 |
You cannot install Ansible Automation Platform and a private automation hub instance on the same node. The inventory file can handle the installation of both Ansible Automation Platform and automation hub. These instructions are only for the installation of Ansible Automation Platform.
Chapter 2. Installing online or offline
Choose the Ansible Automation Platform installer you need to install private automation hub based on your Red Hat Enterprise Linux environment internet connectivity. Review the following scenarios and determine which Ansible Automation Platform installer meets your needs.
You must have a valid Red Hat customer account to access Ansible Automation Platform installer downloads on the Red Hat Customer Portal.
Installing with internet access
Install private automation hub using the Ansible Automation Platform installer if your Red Hat Enterprise Linux environment is connected to the internet. Installing with internet access will retrieve the latest required repositories, packages, and dependencies.
- Navigate to the Red Hat Ansible Automation Platform download page.
- Click Download Now for the Ansible Automation Platform <latest-version> Setup.
Extract the files:
$ tar xvzf ansible-automation-platform-setup-<latest-version>.tar.gz
Installing without internet access
Install private automation hub using the Ansible Automation Platform Bundle installer if you are unable to access the internet, or would prefer not to install separate components and dependencies from online repositories. Access to Red Hat Enterprise Linux repositories is still needed. All other dependencies are included in the tar archive.
- Navigate to Download Red Hat Ansible Automation Platform.
- Click Download Now for the Ansible Automation Platform <latest-version> Setup Bundle.
Extract the files:
$ tar xvzf ansible-automation-platform-setup-bundle-<latest-version>.tar.gz
Chapter 3. Editing the inventory file
Edit the inventory file to specify an installation of automation hub and update the required parameters.
Navigate to the installer.
[bundled installer]
$ cd ansible-automation-platform-setup-bundle-<latest-version>
[online installer]
$ cd ansible-automation-platform-setup-<latest-version>
-
Open the
inventoryfile with a text editor. Edit the
inventoryfile parameters to specify an installation of automation hub host only. Refer to the following example.-
Leave
[automationcontroller]inventory information empty. Add
[automationhub]group host information.NoteProvide a reachable IP address for the
[automationhub]host to ensure users can sync content from private automation hub from a different node.Update the values for
automationhub_admin_passwordandautomation_pg_passwordand any additional parameters based on your installation specifications:Example
[automationcontroller] [automationhub] <reachable-ip> ansible_connection=local [all:vars] automationhub_admin_password= <PASSWORD> automationhub_pg_host='' automationhub_pg_port='' automationhub_pg_database='automationhub' automationhub_pg_username='automationhub' automationhub_pg_password=<PASSWORD> automationhub_pg_sslmode='prefer' # The default install will deploy a TLS enabled Automation Hub. # If for some reason this is not the behavior wanted one can # disable TLS enabled deployment. # # automationhub_disable_https = False # The default install will generate self-signed certificates for the Automation # Hub service. If you are providing valid certificate via automationhub_ssl_cert # and automationhub_ssl_key, one should toggle that value to True. # # automationhub_ssl_validate_certs = False # SSL-related variables # If set, this will install a custom CA certificate to the system trust store. # custom_ca_cert=/path/to/ca.crt # Certificate and key to install in Automation Hub node # automationhub_ssl_cert=/path/to/automationhub.cert # automationhub_ssl_key=/path/to/automationhub.key
-
Leave
3.1. Connecting automation hub to a Red Hat Single Sign-On environment
To connect automation hub to a Red Hat Single Sign-On installation, configure inventory variables in the inventory file before you run the installer setup script.
You must configure a different set of variables when connecting to a Red Hat Single Sign-On installation managed by Ansible Automation Platform than when connecting to an external Red Hat Single Sign-On installation.
3.1.1. Inventory file variables for connecting automation hub to a Red Hat Single Sign-On instance
If you are installing automation hub and Red Hat Single Sign-On together for the first time or you have an existing Ansible Automation Platform managed Red Hat Single Sign-On, configure the variables for Ansible Automation Platform managed Red Hat Single Sign-On.
If you are installing automation hub and you intend to connect it to an existing externally managed Red Hat Single Sign-On instance, configure the variables for externally managed Red Hat Single Sign-On.
For more information about these inventory variables, refer to Ansible automation hub variables in the Red Hat Ansible Automation Platform Installation Guide.
The following variables can be configured for both Ansible Automation Platform managed and external Red Hat Single Sign-On:
| Variable | Required or optional |
|---|---|
|
| Required |
|
| Optional |
|
| Optional |
|
| Optional |
|
| Optional |
|
| Optional |
|
| Optional |
|
| Optional |
The following variables can be configured for Ansible Automation Platform managed Red Hat Single Sign-On only:
| Variable | Required or optional |
|---|---|
|
|
Required only if |
|
| Optional |
|
| Optional |
|
| Optional |
The following variable can be configured for external Red Hat Single Sign-On only:
| Variable | Description |
|---|---|
|
| Required |
Chapter 4. Installing automation hub with the setup script
Run the installer setup script after you have configured the appropriate inventory variables.
4.1. Running the setup script
You can run the setup script when you finish updating the inventory file with the required parameters for installing your private automation hub.
Run the
setup.shscript to begin installation:$ ./setup.sh
4.2. Verifying Red Hat Single Sign-On connection
The installer uses the Red Hat Single Sign-On variables to setup a Keycloak realm and client.
To verify that you have successfully connected to the existing Red Hat Single Sign-On installation, check that settings.py contains the Red Hat Single Sign-On host information, the realm name, the key, and the secret.
Chapter 5. Verifying installation
When the installation completes, you can verify your private automation hub has been installed successfully with the following steps:
- Navigate to your private automation hub.
-
Log in with the administrator credentials you set in the
inventoryfile.
Your private automation hub is now ready for initial configuration. See the following administration guides for more:
Chapter 6. Upgrading to the latest version
You can upgrade your private automation hub to the latest version using the Ansible Automation Platform setup bundle installer. Perform this upgrade using the inventory file configured when you installed private automation hub.
- Navigate to Download Red Hat Ansible Automation Platform.
- Click Download Now for the Ansible Automation Platform <latest-version> Setup Bundle.
Extract the files:
$ tar xvzf ansible-automation-platform-setup-bundle-<latest-version>.tar.gz
-
Copy the configuration information from your initial installation to the
inventoryfile. Run the
setup.shscript$ ./setup.sh
Verifying your upgrade
You can verify a successful upgrade to your private automation hub by reviewing the Server version information.
- Log in to your private automation hub.
- Click the ? icon in the navigation bar.
- Click About.
- Verify that the server version matches the version you upgraded to.