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 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.