Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sivel/ansible-pulp-galaxy-ng
Playbook to create a working pulp/pulp_ansible/galaxy_ng container via ansible
https://github.com/sivel/ansible-pulp-galaxy-ng
Last synced: 19 days ago
JSON representation
Playbook to create a working pulp/pulp_ansible/galaxy_ng container via ansible
- Host: GitHub
- URL: https://github.com/sivel/ansible-pulp-galaxy-ng
- Owner: sivel
- License: gpl-3.0
- Created: 2020-06-29T19:23:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-02T15:29:36.000Z (over 2 years ago)
- Last Synced: 2024-10-04T23:41:45.586Z (about 1 month ago)
- Size: 28.3 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Playbook to create a working pulp/pulp_ansible/galaxy_ng container via ansible
This playbook uses https://hub.docker.com/r/pulp/pulp-galaxy-ng to create a Docker container
running `pulp`, `pulp_ansible`, and `galaxy_ng`.## Use
```
$ ansible-playbook -v playbook.yml
```Make sure to pay attention to the `debug` outputs at the end of the play. A pre-populated `ansible.cfg` will be created at `{{ playbook_dir }}/out/ansible.cfg`
### Pre-create namespaces in galaxy_ng
```
$ ansible-playbook -v -e '{namespaces: [ns1, ns2]}' playbook.yml
```### Assumptions
1. Running `ansible-base` 2.10+ with the `community.general` collection installed, for access to the `docker` modules.
1. Running Docker, with env configurations to access the docker server
1. Python `docker` module installed and available to the playbook python (implicit localhost)## Notes
1. The `repository` and `distribution` are shared between `pulp_ansible` and `galaxy_ng`. As such, collections published to `galaxy_ng` will appear in `pulp_ansible` as well.
1. Due to `galaxy_ng` storing it's own information for an uploaded collection, it's best to upload to `galaxy_ng`, if you plan on interacting with both `galaxy_ng` and `pulp_ansible`
1. `galaxy_ng` requires pre-creating namespaces before collections can be uploaded, this can be done using the admin username and password in the UI by opening the URL root in a browser, or by using the extra vars example above.