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 |