Until now you installed and configured an AAP 2.2 environment component by component. In real life you would have the installer deploy all components in one go, so you would get an environment with integrated components consisting of:
So in this section you’ll build the whole thing.
Prerequisites
ansible-navigator run cloud-infra.yml -m stdout -e remove=true
ansible-navigator run cloud-infra.yml -m stdout
Tasks
ssh-keygen
)and add the new public key to the authorized_keys
file of ec2-user on the other three instances.
subscription-manager register
subscription-manager repos --enable=jb-eap-7.3-for-rhel-8-x86_64-rpms
Ansible basics: Disable host key checking, either by running export ANSIBLE_HOST_KEY_CHECKING=False; ./setup.sh
or by putting
[defaults]
host_key_checking = False
into ./ansible.cfg
After the installation has finished, Private Automation Hub and Automation Services Catalog are configured for SSO. So to be able to login to the UIs, you have to configure a user with the proper roles in RH SSO.
https://<instance>:8443
):
automation-catalog
catalog-admin
automation-hub
hubadmin
Now you have a user with admin permissions for PAH and Catalog.
Goal
admin
, password as set in inventory)admin
, password as set in inventory)Tips
Example inventory file:
[automationcontroller]
<instance-1> ansible_connection=local
[automationcontroller:vars]
peers=execution_nodes
[execution_nodes]
[automationhub]
<instance-2> ansible_user=ec2-user ansible_become=true
[automationcatalog]
<instance-3> ansible_user=ec2-user ansible_become=true
[database]
[sso]
<instance-4> ansible_user=ec2-user ansible_become=true
[all:vars]
admin_password='<password>'
pg_host=''
pg_port=5432
pg_database='awx'
pg_username='awx'
pg_password='<password>'
pg_sslmode='prefer' # set to 'verify-full' for client-side enforced SSL
registry_url='registry.redhat.io'
registry_username='<registry user>'
registry_password='<registry token or password'
receptor_listener_port=27199
automationhub_admin_password='<password>'
automationhub_pg_host='<instance-1>'
automationhub_pg_port=5432
automationhub_pg_database='automationhub'
automationhub_pg_username='automationhub'
automationhub_pg_password='<password>'
automationhub_pg_sslmode='prefer'
automationcatalog_pg_host='<instance-1>'
automationcatalog_pg_port=5432
automationcatalog_pg_database='automationservicescatalog'
automationcatalog_pg_username='automationservicescatalog'
automationcatalog_pg_password='<password>'
automationcatalog_controller_verify_ssl=False
sso_keystore_password='<password>'
sso_console_admin_password='<password>'