renovate/lib/modules/datasource/galaxy-collection/readme.md

917 B

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 source in your requirements.yaml file, or
  • writing a packageRule to set a new registryURLs

Then you can use Renovate with a private automation hub.

---
collections:
  - name: community.general
    version: 3.0.0
    source: https://hub.mydomain.com/api/galaxy/content/community/
{
  "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/"
      ]
    }
  ]
}