Configure the plug-ins
Configure Ansible plug-ins for Red Hat Developer Hub to customize how users access and create Ansible content. Configure the plug-ins to control access to software templates and enable optional integrations that enhance the development environment.
- Control access to templates: Configure role-based access control to determine who can create projects from templates and who can view them.
- Enable project provisioning: Configure the Ansible development tools server and add software templates to enable playbook and collection project creation.
- Enhance development workflows: Configure optional integrations to extend functionality based on your environment needs.
Add a custom ConfigMap
Create a custom Red Hat Developer Hub ConfigMap, typically named app-config-rhdh, to store custom application settings.
Procedure
app-config-rhdh.
To edit your custom ConfigMap, log in to the OpenShift UI and navigate to .
Configure the Ansible development tools Server
The creatorService URL is required for the Ansible plug-ins to provision new projects using the provided software templates.
Procedure
Configure Ansible Automation Platform details
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
The Ansible plug-ins continue to function regardless of the Ansible Automation Platform subscription status.
Procedure
- 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
Add Ansible Automation Platform software templates to your Red Hat Developer Hub instance so users can create new Ansible playbooks and collection projects based on Ansible best practices.
Procedure
Configure Role Based Access Control
Red Hat Developer Hub offers Role-based Access Control (RBAC) functionality. RBAC can then be applied to the Ansible plug-ins content.
Procedure
- 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.