Complete required configurations
Complete these required configuration steps to add the Ansible plug-ins to your Helm chart and link the Red Hat Developer Hub instance to the necessary Ansible Automation Platform components.
Add the Ansible plug-ins configuration Copy linkLink copied!
Modify the Red Hat Developer Hub Helm chart to add the Ansible plug-ins. The configuration depends on the plug-in delivery method you chose earlier.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
To verify that the plug-ins have been installed, open the install-dynamic-plugin container logs:
- Open the Developer perspective for the Red Hat Developer Hub application in the OpenShift Web console.
- Select the Topology view.
- Select the Red Hat Developer Hub deployment pod to open an information pane.
- Select the Resources tab of the information pane.
- In the Pods section, click View logs to open the Pod details page.
- In the Pod details page, select the Logs tab.
- Select
install-dynamic-pluginsfrom the drop-down list of containers to view the container log.- For OCI delivery, a successful installation displays:
=> Successfully installed dynamic plugin oci:registry.redhat.io/ansible-automation-platform/ansible-plugin-backstage-rhaap-dynamic:x.y.z - For HTTP plug-in registry (deprecated), a successful installation displays:
=> Successfully installed dynamic plugin http://plugin-registry:8080/ansible-plugin-backstage-rhaap-dynamic-x.y.z.tgz
- For OCI delivery, a successful installation displays:
Add a pull secret to the Red Hat Developer Hub Helm configuration Copy linkLink copied!
You must add a pull secret to the Red Hat Developer Hub Helm configuration to enable the dynamic plug-ins to pull container images from authenticated registries.
Before you begin Copy linkLink copied!
- You have a Red Hat Customer Portal account and Red Hat Service Registry account.
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
Add the Ansible Developer Tools container Copy linkLink copied!
Add a custom ConfigMap Copy linkLink copied!
Create a custom Red Hat Developer Hub ConfigMap, typically named app-config-rhdh, to store custom application settings.
Procedure Copy linkLink copied!
app-config-rhdh.
To edit your custom ConfigMap, log in to the OpenShift UI and navigate to .
Configure the Ansible development tools Server Copy linkLink copied!
The creatorService URL is required for the Ansible plug-ins to provision new projects using the provided software templates.
Procedure Copy linkLink copied!
Configure Ansible Automation Platform details Copy linkLink copied!
Connect Red Hat Developer Hub to your automation controller by configuring the Ansible Automation Platform details. This configuration uses a Personal Access Token (PAT) to authenticate the plug-ins, which allows them to interact with your automation environment.
About this task Copy linkLink copied!
The Ansible plug-ins continue to function regardless of the Ansible Automation Platform subscription status.
Procedure Copy linkLink copied!
- Create a Personal Access Token (PAT) with "read and write” scope in automation controller, following the Applications section of Access management and authentication.
- Edit your custom Red Hat Developer Hub config map, for example
app-config-rhdh. - Add your Ansible Automation Platform details to
app-config-rhdh.yaml.
Add Ansible plug-ins software templates Copy linkLink copied!
Ansible Automation Platform provides software templates for Red Hat Developer Hub to provision new playbooks and collection projects based on Ansible best practices.
Procedure Copy linkLink copied!
Configure Role Based Access Control Copy linkLink copied!
Red Hat Developer Hub offers Role-based Access Control (RBAC) functionality. RBAC can then be applied to the Ansible plug-ins content.
Procedure Copy linkLink copied!
- Members of the
admin:superUsersgroup can select templates in the Create tab of the Ansible plug-ins to create playbook and collection projects. - Members of the
admin:usersgroup can view templates in the Create tab of the Ansible plug-ins.The following example adds RBAC to Red Hat Developer Hub.
data: app-config-rhdh.yaml: | plugins: ... permission: enabled: true rbac: admin: users: - name: user:default/<user-scm-ida> superUsers: - name: user:default/<user-admin-idb>For more information about permission policies and managing RBAC, refer to the Authorization in Red Hat Developer Hub guide for Red Hat Developer Hub.