Skip to content
/ amanda Public

A simple web application, to mimic the v3 API endpoints for Ansible Galaxy Collections, with no database, just a directory with artifacts

License

Notifications You must be signed in to change notification settings

sivel/amanda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

  2. Create a directory to hold the artifacts, which by default is named artifacts and lives in the current working directory

  3. Drop ansible-galaxy collection build/download artifacts in the artifacts directory

  4. Run the app:

    ./amanda -artifacts=/path/to/artifacts
    
  5. Install collections:

    ansible-galaxy collection install -s https://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 -

About

A simple web application, to mimic the v3 API endpoints for Ansible Galaxy Collections, with no database, just a directory with artifacts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages