Galaxy Collection Datasource¶
Table of values¶
| Name | Value | Notes |
|---|---|---|
| Identifier | galaxy-collection |
|
| Default versioning | pep440 |
|
| Custom registry support | Yes | |
| Release timestamp support | Yes | The release timestamp is determined from the created_at field in the results. |
| Source URL support | Yes | The sourceUrl is determined from the repository field in the results. |
Description¶
By default, the galaxy-collection datasource checks for dependencies on https://galaxy.ansible.com.
But you can override the default if you want.
Set your own registries by:
- setting a
sourcein yourrequirements.yamlfile, or - writing a
packageRuleto set a newregistryURLs
Then you can use Renovate with a private automation hub or an ansible repository on artifactory.
Example config for requirements.yaml
---
collections:
- name: community.general
version: 3.0.0
source: https://hub.mydomain.com/api/galaxy/content/community/
Example config for renovate.json
{
"packageRules": [
{
"matchDatasources": ["galaxy-collection"],
"registryUrls": [
"https://hub.mydomain.com/api/galaxy/content/community/",
"https://hub.mydomain.com/api/galaxy/content/certified/",
"https://hub.mydomain.com/api/galaxy/content/myprivaterepo/",
"https://mydomain.com/artifactory/api/ansible/myrepository/"
]
}
]
}