Can anyone recommend a good tutorial for running a local galaxy server?
There’s multiple options available to you:
- Running a Galaxy NG server yourself: Installation - Galaxy NG
- Running a local RH PrivateAutomation Hub: Red Hat Ansible Automation Platform installation guide | Red Hat Product Documentation
- Running it inside JFrog Artifactory: GitHub - briantist/galactory: An Ansible Galaxy proxy for Artifactory made by @briantist
- Stashing all objects somewhere in Git and using the following in your requirements.yml
---
collections:
- name: 'git+https://git.example.nl/myorg/collection'
version: 'master' # or whatever version you need
roles:
- name: 'my_role'
src: 'https://git.example.nl/myorg/role'
scm: 'git'
version: '2.5.1'
Also note that Artifactory has just released an update that allows Ansible Galaxy proxying and Ansible collection storage as first class features - JFrog Help Center
Thanks! We currently host a handful of local modules on a boring old BLOB storage (with a basic webserver), so I know you can also add
collections:
- name: "https://my-secret-webserver.blah.com/thing-2.1.tar.gz"
Sounds like Galaxy NG might be what I want, but the install docs seemed predictably complex… (Ansible: current version is deprecated, new version isn’t ready yet - )
This feature can be a shortcut for test purposes (for example, to install a PR against a collection to try it out), but I recommend against it for general use.
Here’s another option available for a tar.gz server that I use for its simplicity GitHub - sivel/amanda: A simple web application, to mimic the v3 API endpoints for Ansible Galaxy Collections, with no database, just a directory with artifacts