Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 8. Install Private Automation Hub
With all the prerequisites set and in place, the final step is to modify the inventory file for a clustered automation hub installation and run setup.sh
.
Within this reference environment, the controlplane-1.site1.example.com system is used to run the setup.sh
for the clustered automation hub environment as it can access all the nodes.
The following installation is done on site Ansible Site 1 of this reference environment Ansible Automation Platform cluster. After completion, ensure to follow the same steps for Ansible Site 2.
On controlplane-1.site1.example.com, as the ansible
user, perform the following:
Change directory into ansible-automation-platform-setup-2.1.0-1.tar.gz
cd ansible-automation-platform-setup-2.1.0-1/
cd ansible-automation-platform-setup-2.1.0-1/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Backup the existing inventory file
cp inventory inventory-controller.bkup
$ cp inventory inventory-controller.bkup
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Modify the inventory file to include with the appropriate information about your environment. Below is an example of this reference environment.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- automation hub nodes.
- 2
- Set the node that will install the PostgreSQL database for the automation hub installation.
- 3
- Execution Environment images are downloaded and included in your installation. Proper credentials required to download the images.
- 4
- User credential for access to registry_url.
- 5
- Password credential for access to registry_url.
- 6
- Set the password for admin user to access the UI upon install completion.
- 7
- Set the PostgreSQL host (database node).
- 8
- Set the PostgreSQL port to use for the automation hub database node.
- 9
- Set the password for the PostgreSQL database.
NoteAll the information regarding the Ansible Automation Platform controller installation was removed.
Create a file labeled credentials_ah.yml that will store the encrypted credentials.
cat credentials_ah.yml
$ cat credentials_ah.yml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow automationhub_admin_password: my_long_ahub_pw automationhub_pg_password: my_long_ahub_pw registry_password: my_long_registry_pw
automationhub_admin_password: my_long_ahub_pw automationhub_pg_password: my_long_ahub_pw registry_password: my_long_registry_pw
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Encrypt the credentials_ah.yml file using
ansible-vault
.ansible-vault encrypt credentials_ah.yml
$ ansible-vault encrypt credentials_ah.yml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow New Vault password: Confirm New Vault password: Encryption successful
New Vault password: Confirm New Vault password: Encryption successful
Copy to Clipboard Copied! Toggle word wrap Toggle overflow WarningStore your encrypted vault password in a safe place.
Verify the credentials_ah.yml file is encrypted
cat credentials_ah.yml
$ cat credentials_ah.yml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the
setup.sh
for installation of Ansible Automation Platform 2.1 and pass the credentials_ah.yml, as well as, the --ask-vault-pass optionANSIBLE_BECOME_METHOD='sudo' ANSIBLE_BECOME=True ANSIBLE_HOST_KEY_CHECKING=False ./setup.sh -e @credentials_ah.yml -- --ask-vault-pass
$ ANSIBLE_BECOME_METHOD='sudo' ANSIBLE_BECOME=True ANSIBLE_HOST_KEY_CHECKING=False ./setup.sh -e @credentials_ah.yml -- --ask-vault-pass
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteThe following ANSIBLE*_ variables are set to ensure a successful install.
NoteFor more information regarding the different values that can be set within your inventory file, visit: Setting up the inventory file
- Login to the private automation hub dashboard, e.g. automationhub-cluster.site1.example.com