Installing the automation services catalog worker
Extend your Red Hat Ansible Automation Platform to connect with automation services catalog on cloud.redhat.com using the Ansible Automation Platform 2.0 Setup or Setup Bundle Installers
Abstract
Preface Copy linkLink copied to clipboard!
You can extend Red Hat Ansible Automation Platform to connect with automation services catalog on cloud.redhat.com using the Ansible Automation Platform setup or setup bundle installer.
This is a Day 2 activity and requires setup of a service account that has write permissions on all basic resources/objects in automation controller: organizations, users, projects, job templates and inventories.
The Catalog worker requires a set of variables assigned to hosts in your Red Hat Ansible Automation Platform network. Running the Catalog worker will create an application and an application token, install the necessary packages, and start the service.
Making open source more inclusive Copy linkLink copied to clipboard!
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.
Chapter 1. Installing the automation services catalog worker Copy linkLink copied to clipboard!
You can use the following instructions to extend your Red Hat Ansible Automation Platform to connect to {Catalog} hosted service on cloud.redhat.com.
1.1. Prerequisites Copy linkLink copied to clipboard!
- Automation controller and any instance group nodes associated with an organization service account specified in /inventory must be running on a RHEL 8.4 virtual machine.
- You have registered the RHEL 8.4 virtual machine with Red Hat Subscription Manager. Installation generates a certificate used to authenticate with cloud.redhat.com.
- You have attached the Ansible Automation Platform SKU to the Catalog Worker node.
- You have enabled SSH on the RHEL 8.4 virtual machine running the automation services catalog worker.
- Automation controller with at least one organization configured, including inventories, projects and job templates.
- A service account is created for each organization that has write permissions on all objects mentioned above. Application token is created when the installer is run and not required as a prerequisite.
1.2. Adding host variables to the installer Copy linkLink copied to clipboard!
Installing the automation services catalog worker requires adding host vars in the Red Hat Ansible Automation Platform installer used for installation parameters. The 'host_vars' files store parameter information for each host you specify. Refer to the parameters table below for all available and required parameters.
| Parameter | Required |
|---|---|
| servicescatalog_controller_hostname | |
| servicescatalog_controller_name | |
| servicescatalog_controller_user | Yes |
| servicescatalog_controller_password | Yes |
| servicescatalog_controller_validate_certs | |
| servicescatalog_http_proxy | |
| servicescatalog_https_proxy | |
| servicescatalog_no_proxy |
Procedure
Navigate to the Ansible Automation Platform setup or setup bundle installer directory.
cd ansible-automation-platform-setup-<latest>
# cd ansible-automation-platform-setup-<latest>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create a new directory called
host_vars:mkdir host_vars
# mkdir host_varsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create a file for each required host. Examples with parameters for two hosts are included below.
Service account on
localhost:touch finance
# touch financeCopy to Clipboard Copied! Toggle word wrap Toggle overflow Copy to Clipboard Copied! Toggle word wrap Toggle overflow Service account on an additional host:
touch marketing
# touch marketingCopy to Clipboard Copied! Toggle word wrap Toggle overflow Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- Save each file.
Open the
inventoryfile in the Ansible Automation Platform installer:vi inventory
# vi inventoryCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the
host_varsfor each host under[servicescatalog_workers]:[servicescatalog_workers] finance marketing
[servicescatalog_workers] finance marketingCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Save the inventory file.
1.3. Running the installer Copy linkLink copied to clipboard!
You can now proceed to run the installer.
Run the Ansible Automation Platform setup script:
./setup.sh
# ./setup.shCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Running the automation services catalog worker will create an application and an application token, install the necessary packages, connect to cloud.redhat.com, and start the service.
Verification
You can verify that the automation services catalog worker installed and connected to your automation service catalog, and that jobs ordered in automation service catalog run on automation controller.
Prerequisites
You are a Catalog Administrator and can create portfolios and add products to them.
- Log in to cloud.redhat.com
- Navigate to → .
- Click .
-
Locate the platforms associated with the hosts you created for your
host_vars. - Click on a platform.
- Verify that inventory and templates from your automation controller are included.