Manage collection access and permissions with namespaces
Namespaces are unique locations in automation hub to which you can upload and publish content collections.
Namespace access is governed by teams with permission to manage the content and related information that appears there. You can use namespaces in automation hub to organize collections developed within your organization for internal distribution and use.
If you are working with namespaces, you must have a team that has permissions to create, edit and upload collections to namespaces. Collections uploaded to a namespace require administrative approval before you can publish them and make them available for use.
Create a content development team Copy linkLink copied!
Create a new team in Ansible Automation Platform to support content curation and development in your organization.
Before you begin Copy linkLink copied!
- You have administrative permissions in Ansible Automation Platform and can create teams.
About this task Copy linkLink copied!
Your team can contribute internally-developed collections for publication in private automation hub.
To help content developers create a namespace and upload their internally developed collections to private automation hub, first create a team and assign the required permissions.
Procedure Copy linkLink copied!
- Log in to Ansible Automation Platform.
- From the navigation panel, select and click .
- Enter Content Engineering as a Name for the team.
- Select an Organization for the team.
- Click . The team Details page opens.
- Select the Roles tab and then select the Automation Content tab.
- Click .
- Select Namespace from the Resource type list and click .
- Select the namespaces that will receive the new roles and click .
- Select the roles to apply to the selected namespaces and click .
- Review your selections and click .
- Click to complete the process.
What to do next Copy linkLink copied!
The new team is created with the permissions that you assigned. You can now add users to the team in the Users tab.
Create a namespace Copy linkLink copied!
Create a namespace to organize collections that your content developers upload to automation hub.
Before you begin Copy linkLink copied!
- You have Add Namespaces and Upload to Namespaces permissions.
About this task Copy linkLink copied!
When creating a namespace, you can assign a team in automation hub as owners of that namespace.
By default, namespaces used on Ansible Galaxy are also used on automation hub by the Ansible partner team. For questions, contact ansiblepartners@redhat.com.
Procedure Copy linkLink copied!
- Log in to Ansible Automation Platform.
- From the navigation panel, select .
- Click and enter a Name for your namespace.
- Optional: enter a description, company, logo URL, resources, or useful links in the appropriate fields.
- Click .
- Select the Team Access tab and click to assign roles to your namespace.
- Select the team to which you want to grant a role, then click .
- Select the roles you want to apply to the selected team, and then click .
- Review your selections and click .
- Click to complete the process.
What to do next Copy linkLink copied!
Your content developers can now upload collections to your new namespace. In addition, teams with permissions to upload to the namespace can start adding their collections for approval. Collections in the namespace appear in the Published repository after approval.
Edit namespace resources Copy linkLink copied!
Edit the information associated with the namespace and provide resources for your users to accompany collections included in the namespace.
Before you begin Copy linkLink copied!
- You have Change Namespaces permissions.
About this task Copy linkLink copied!
Customize your namespace by adding a logo and a description, and link users to your GitHub repository, issue tracker, or other online assets. You can also enter markdown text in the Resources field to include more information. This is helpful to users who use your content in their automation tasks.
Procedure Copy linkLink copied!
- Log in to Ansible Automation Platform.
- From the navigation panel, select .
- Select the namespace you want to edit.
- Click the .
- Enter the relevant information in the fields.
- Optional: enter markdown information in the Resources field.
- Click .
Upload collections to a namespace Copy linkLink copied!
Upload internally-developed collections in tar.gz file format to your private automation hub namespace for review and approval by an automation hub administrator.
Before you begin Copy linkLink copied!
- You have a namespace to which you can upload the collection.
Attempting to upload very large collections will result in an error.
Limit collection size to 20 mb when uploading to Ansible Galaxy or console.redhat.com. For private automation hub avoid uploading collections sized 200 mb or more.
In scenarios that require a complete environment with multiple collections and dependencies, use an execution environment.
About this task Copy linkLink copied!
When approved, the collection moves to the Published content repository where automation hub users can view and download it.
Format your collection file name as follows: <my_namespace-my_collection-1.0.0.tar.gz>
Procedure Copy linkLink copied!
Results Copy linkLink copied!
To verify whether the collection uploaded successfully or if it failed, navigate to and click the icon ⋮, then select Imports. There you will find a summary of tests indicating whether the import was successful.
Review your namespace import logs Copy linkLink copied!
Review the status of collections uploaded to your namespaces to evaluate success or failure of the process.
Before you begin Copy linkLink copied!
- You have access to a namespace to which you can upload collections.
About this task Copy linkLink copied!
Imported collection information includes:
- Status
- completed or failed
- Approval status
- waiting for approval or approved
- Version
- the version of the uploaded collection
- Import log
- activities executed during the collection import
Procedure Copy linkLink copied!
- Log in to your Ansible Automation Platform.
- From the navigation panel, select .
- Select a namespace.
- Click the icon ⋮ and select Imports.
- Use the search field or locate an imported collection from the list.
- Click the imported collection.
- Review collection import details to determine the status of the collection in your namespace.
Delete a collection Copy linkLink copied!
You can further manage your collections by deleting content, if the content has no dependencies.
Before you begin Copy linkLink copied!
- The content being deleted does not have dependencies with other content.
- You have Delete Collections permissions.
About this task Copy linkLink copied!
The Dependencies tab on a collection displays a list of other collections that use the current collection.
Procedure Copy linkLink copied!
Delete a namespace Copy linkLink copied!
You can delete unwanted namespaces to manage storage on your automation hub server.
Before you begin Copy linkLink copied!
- The namespace you are deleting does not have a collection with dependencies.
- You have Delete namespace permissions.
About this task Copy linkLink copied!
First, ensure that the namespace you want to delete does not contain a collection with dependencies.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
The namespace that you deleted, as well as its associated collections, is now deleted and removed from the namespace list view.
Create a remote configuration in automation hub Copy linkLink copied!
Remote configurations allow you to sync content to your custom repositories from an external collection source.
About this task Copy linkLink copied!
n automation hub, you can create a remote configuration to an external collection source. Then, you can sync the content from those collections to your custom repositories.
Procedure Copy linkLink copied!
Assign access to a remote configuration Copy linkLink copied!
After you create a remote configuration, you must provide access to it before anyone can use it.
Procedure Copy linkLink copied!
- Log in to Ansible Automation Platform.
- From the navigation panel, select .
- Click into your repository in the list, and then select the Team Access tab.
- Click .
- Select the team to which you want to grant a role, then click .
- Select the roles you want to apply to the selected team, and then click .
- Review your selections and click .
- Click to complete the process.