Ubi population library for populating ubi repositories
Project description
A python library and cli for populating ubi repositories.
The library provides convenient means how to populate ubi repositories:
- consumes ubi config using ubi-config tool
- calculates expected content of ubi repositories
- determines pulp actions which will ensure expected content to be in ubi repos
Library usage
Example of typical usage of library follows:
from ubipop import UbiPopulate
ubi = UbiPopulate(content_sets, pulp_url, ("user", "pass"), dry_run=False)
ubi.populate_ubi_repos()
Required arguments are:
- content_sets: list of content sets that will be used for reading config
- pulp_url: url of pulp_server
- tuple of username nad password of pulp server
- dry_run: boolean, if True, it calculates and prints expected pulp actions, if False execute pulp actions
By calling populate_ubi_repos() whole process of calculation of desired content of ubi repos and required action is started.
Cli usage
Cli can be run by ubipop with arguments:
-
positional arguments:
- content_sets: list of content sets to be processed
-
optional arguments:
- -h, --help: show this help message and exit
- --pulp-hostname HOSTNAME: hostname of Pulp server
- --user USER: username for authentication to Pulp
- --password PASSWORD: password for authentication to Pulp
- --dry-run: if True, print pulp actions only, do not execute
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ubi-population-tool-0.1.5.tar.gz
(23.6 kB
view details)
File details
Details for the file ubi-population-tool-0.1.5.tar.gz
.
File metadata
- Download URL: ubi-population-tool-0.1.5.tar.gz
- Upload date:
- Size: 23.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0478526bccf3448178ed588f40bd65826e9173a4b49e572da41e900095106b7 |
|
MD5 | 1b018f746c5855e682d160befc54736e |
|
BLAKE2b-256 | 8ccb20861c0062c34ef1f0402212b7bba206de1e68100f6753165a61865a31ee |