Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sivel/amanda
A simple web application, to mimic the v3 API endpoints for Ansible Galaxy Collections, with no database, just a directory with artifacts
https://github.com/sivel/amanda
Last synced: 3 months ago
JSON representation
A simple web application, to mimic the v3 API endpoints for Ansible Galaxy Collections, with no database, just a directory with artifacts
- Host: GitHub
- URL: https://github.com/sivel/amanda
- Owner: sivel
- License: gpl-3.0
- Created: 2021-03-01T18:30:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-02T22:02:51.000Z (over 1 year ago)
- Last Synced: 2024-10-04T12:00:44.781Z (4 months ago)
- Language: Go
- Homepage:
- Size: 85 KB
- Stars: 14
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# amanda
A simple web application, to mimic the v2 API endpoints for Ansible Galaxy Collections, with no database, just a directory with artifacts
## Usage
1. `go install github.com/sivel/amanda@latest` (You can use the `GOBIN` env variable to install to a custom location)
1. Create a directory to hold the artifacts, which by default is named `artifacts` and lives in the current working directory
1. Drop `ansible-galaxy collection build/download` artifacts in the `artifacts` directory
1. Run the app:```
./amanda -artifacts=/path/to/artifacts
```
1. Install collections:```
ansible-galaxy collection install -s http://hostname:5000/api namespace.collection
```## Signatures
Alongside the `.tar.gz` artifact for a collection, create a file with the same base name and a `.asc` extension.
A quick example on creating and verifying the signature:
```
cd collections/ansible_collections/namespace/name
ansible-galaxy collection build
tar -Oxzf namespace-name-1.0.0.tar.gz MANIFEST.json | gpg --output namespace-name-1.0.0.asc --detach-sign --armor --local-user [email protected] -
tar -Oxzf namespace-name-1.0.0.tar.gz MANIFEST.json | gpg --verify namespace-name-1.0.0.asc -
```