https://github.com/release-engineering/dockpulp-ansible
ansible modules to manage dockpulp
https://github.com/release-engineering/dockpulp-ansible
Last synced: 9 months ago
JSON representation
ansible modules to manage dockpulp
- Host: GitHub
- URL: https://github.com/release-engineering/dockpulp-ansible
- Owner: release-engineering
- License: gpl-3.0
- Created: 2021-11-11T13:58:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-10T02:10:29.000Z (over 3 years ago)
- Last Synced: 2025-02-01T04:33:53.229Z (over 1 year ago)
- Language: Python
- Size: 30.3 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: COPYING
Awesome Lists containing this project
README
Install from Ansible Galaxy
---------------------------
We distribute dockpulp-ansible through the `Ansible Galaxy
`_.
If you are using Ansible 2.9 or greater, you can `install
`_
dockpulp_ansible like:
ansible-galaxy collection install release_engineering.dockpulp_ansible
This will install the latest Git snapshot automatically. Use ``--force``
upgrade your installed version to the latest version.
dockpulp_repo
--------------
The ``dockpulp_repo`` module can create, update dockpulp repo on dockpulp server. The env running
the playbook need to have dock-pulp installed
pip3 install --no-deps git+https://github.com/release-engineering/dockpulp.git@dockpulp-1.67-1
and three configuration files for dockpulp server
* dockpulp.conf
* dockpulpdistributions.json
* dockpulpdistributors.json
The playbook.yml file is a small playbook that simply loads our module:
.. code-block:: yaml
- name: create dockpulp repositories on rhel9
hosts: localhost
collections:
- release_engineering.dockpulp_ansible
tasks:
- name: Add rhceph-4-tools-for-rhel-9-x86_64-rpms cdn repo
dockpulp_repo:
env: stage
dockpulp_user: fakeuser
dockpulp_password: fakeuserPassw0rd
repo_name: rhceph-4-rhel9
namespace: rhceph
content_url: /content/dist/containers/rhel9/multiarch/containers/redhat-rhceph-rhceph-4-rhel9
description: This is a test repo for create dockpulp repo
distribution: ga
Next
----