Install with the Ansible Automation Platform Operator on OpenShift Container Platform
The following procedures describe how to install Ansible plug-ins in Red Hat Developer Hub instances on Red Hat OpenShift Container Platform using the Operator.
Prerequisites Copy linkLink copied!
To proceed, you must have Red Hat Developer Hub installed on Red Hat OpenShift Container Platform (OCP) and a valid subscription to Red Hat Ansible Automation Platform.
- Red Hat Developer Hub installed on Red Hat OpenShift Container Platform.
- For Helm installation, follow the steps in the Installing Red Hat Developer Hub on OpenShift Container Platform with the Helm chart section of Installing Red Hat Developer Hub on OpenShift Container Platform.
- For Operator installation, follow the steps in the Installing Red Hat Developer Hub on OpenShift Container Platform with the Operator section of Installing Red Hat Developer Hub on OpenShift Container Platform.
- A valid subscription to Red Hat Ansible Automation Platform.
- An OpenShift Container Platform instance with the appropriate permissions within your project to create an application.
- The Red Hat Developer Hub instance can query the automation controller API.
- Optional: To use the integrated learning paths, you must have outbound access to developers.redhat.com.
Recommended RHDH preconfiguration Copy linkLink copied!
Red Hat recommends performing the following initial configuration tasks in Red Hat Developer Hub (RHDH). However, you can install the Ansible plug-ins for Red Hat Developer Hub before completing these tasks.
- Authentication in Red Hat Developer Hub
- Authorization in Red Hat Developer Hub
Red Hat provides a repository of software templates for RHDH that uses the publish:github action. To use these software templates, you must install the required GitHub dynamic plugins.
Add a sidecar container for Ansible development tools Copy linkLink copied!
Add a sidecar container for Ansible development tools in the Developer Hub pod. To do this, you must modify the base ConfigMap for the Red Hat Developer Hub deployment.
Procedure Copy linkLink copied!
Choose a plug-in delivery method when using the Operator Copy linkLink copied!
Ansible plug-ins for Red Hat Developer Hub support two delivery methods. Choose the method that fits your environment.
- OCI container delivery (recommended): Red Hat Developer Hub pulls the Ansible plug-ins directly from
registry.redhat.ioas OCI artifacts during startup. Use this method for new installations. - HTTP plug-in registry (deprecated): Manually download the Ansible plug-ins tarball files and deploy an HTTP plug-in registry in your OpenShift cluster. This method is deprecated and will be removed in a future release of Ansible Automation Platform. Existing installations that use this method should migrate to OCI container delivery.
Complete one of the following procedures before configuring the dynamic plug-ins.
Use the OCI container delivery with the Operator Copy linkLink copied!
Red Hat Developer Hub pulls the Ansible plug-ins directly from registry.redhat.io as OCI artifacts. This method requires a registry authentication secret in the same OpenShift project as your Red Hat Developer Hub deployment.
Before you begin Copy linkLink copied!
- You have a Red Hat account with access to
registry.redhat.io. - You have a registry service account token from the Red Hat Customer Portal. For more information, see Registry Service Accounts.
- You have access to the OpenShift project where you had installed Red Hat Developer Hub.
- You have installed the OpenShift CLI (
oc) and logged in to your cluster.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
Verify that the secret exists in the project:
oc get secret <deployment-name>-dynamic-plugins-registry-auth
HTTP plug-in registry Copy linkLink copied!
The HTTP plug-in registry method hosts plug-in tarball files in a local OpenShift registry that the dynamic plug-in installer pulls during startup.
The HTTP plug-in registry method is deprecated and will be removed in a future release of Red Hat Ansible Automation Platform. Use OCI container delivery for new installations. The Ansible automation portal setup bundle on the Product Software downloads page is provided for existing installations that have not yet migrated to OCI delivery.
Download the Ansible plug-ins files Copy linkLink copied!
Download the Ansible plug-ins for Red Hat Developer Hub Setup Bundle from the Red Hat Ansible Automation Platform Product Software downloads page.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
Run ls to verify that the extracted files are in the $DYNAMIC_PLUGIN_ROOT_DIR directory:
$ ls $DYNAMIC_PLUGIN_ROOT_DIR
ansible-plugin-backstage-rhaap-dynamic-x.y.z.tgz
ansible-plugin-backstage-rhaap-dynamic-x.y.z.tgz.integrity
ansible-plugin-scaffolder-backend-module-backstage-rhaap-dynamic-x.y.z.tgz
ansible-plugin-scaffolder-backend-module-backstage-rhaap-dynamic-x.y.z.tgz.integrity
The files with the .integrity file type contain the plugin SHA value. The SHA value is used during the plug-in configuration.
Create a registry for the Ansible plug-ins Copy linkLink copied!
Set up a registry in your OpenShift cluster to host the Ansible plug-ins and make them available for installation in Red Hat Developer Hub (RHDH).
Procedure Copy linkLink copied!
Results Copy linkLink copied!
To verify that the plugin-registry was deployed successfully, open the Topology view in the Developer perspective on the Red Hat Developer Hub application in the OpenShift Web console.
- Click the plug-in registry to view the log.

(1) Developer hub instance
(2) Plug-in registry
- Click the terminal tab and login to the container.
- In the terminal, run
lsto confirm that the.tarfiles are in the plugin registry.ansible-plugin-backstage-rhaap-dynamic-x.y.z.tgz ansible-plugin-scaffolder-backend-module-backstage-rhaap-dynamic-x.y.z.tgzThe version numbers and file names can differ.
Install the dynamic plug-ins Copy linkLink copied!
To install the dynamic plugins, add them to your ConfigMap for your Red Hat Developer Hub plugin settings (for example, rhaap-dynamic-plugins-config).
About this task Copy linkLink copied!
If you have not already created a ConfigMap file for your Red Hat Developer Hub plugin settings, create one by following the procedure in the Creating and using config maps section of the Red Hat OpenShift Container Platform Nodes guide.
Procedure Copy linkLink copied!
- Select ConfigMaps in the navigation pane of the OpenShift console.
- Select the
rhaap-dynamic-plugins-configConfigMap from the list. - Select the YAML tab to edit the
rhaap-dynamic-plugins-configConfigMap. - Add the Ansible plug-ins. Choose the configuration that matches your delivery method.
-
OCI container delivery method (recommended):
kind: ConfigMap apiVersion: v1 metadata: name: rhaap-dynamic-plugins-config data: dynamic-plugins.yaml: | includes: - dynamic-plugins.default.yaml plugins: - disabled: false package: 'oci://registry.redhat.io/ansible-automation-platform/automation-portal:2.1!ansible-plugin-backstage-rhaap' pluginConfig: dynamicPlugins: frontend: ansible.plugin-backstage-rhaap: appIcons: - importName: AnsibleLogo name: AnsibleLogo dynamicRoutes: - importName: AnsiblePage menuItem: icon: AnsibleLogo text: Ansible path: /ansible - disabled: false package: 'oci://registry.redhat.io/ansible-automation-platform/automation-portal:2.1!ansible-plugin-scaffolder-backend-module-backstage-rhaap' pluginConfig: dynamicPlugins: backend: ansible.plugin-scaffolder-backend-module-backstage-rhaap: nullReplace
x.y.zwith the Ansible plug-ins version. -
HTTP plug-in registry method (deprecated):
kind: ConfigMap apiVersion: v1 metadata: name: rhaap-dynamic-plugins-config data: dynamic-plugins.yaml: | includes: - dynamic-plugins.default.yaml plugins: - disabled: false package: 'http://plugin-registry:8080/ansible-plugin-backstage-rhaap-dynamic-x.y.z.tgz' integrity: <SHA512 value> pluginConfig: dynamicPlugins: frontend: ansible.plugin-backstage-rhaap: appIcons: - importName: AnsibleLogo name: AnsibleLogo dynamicRoutes: - importName: AnsiblePage menuItem: icon: AnsibleLogo text: Ansible path: /ansible - disabled: false package: >- http://plugin-registry:8080/ansible-plugin-scaffolder-backend-module-backstage-rhaap-dynamic-x.y.z.tgz integrity: <SHA512 value> pluginConfig: dynamicPlugins: backend: ansible.plugin-scaffolder-backend-module-backstage-rhaap: null
-
- Click Save.
Results Copy linkLink copied!
- In the OpenShift console, select the Topology view.
- Click the Open URL icon on the deployment pod to open your Red Hat Developer Hub instance in a browser window.
The Ansible plug-in is present in the navigation pane. If you select Administration, you can see the installed plug-ins in the Plugins tab.