Skip to main content

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 ubi_population_cli with arguments:

  • positional arguments:

    • content_sets: list of content sets to be processed
  • optional arguments:

    • -h, --help: show this help message and exit
    • --pulp_url PULP_URL: url of pulp_server
    • --user USER: pulp user
    • --password PASSWORD: pulp password
    • --dry_run: if True, print pulp actions only, do not execute

Project details


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.4.tar.gz (23.3 kB view details)

Uploaded Source

File details

Details for the file ubi-population-tool-0.1.4.tar.gz.

File metadata

  • Download URL: ubi-population-tool-0.1.4.tar.gz
  • Upload date:
  • Size: 23.3 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

Hashes for ubi-population-tool-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b8137a36d0eb6ebe08fde0755e9e96f5f16ef0a89021cd690d5d78a03abe2e32
MD5 9c43c8a3969db76ffa63e17d670728e4
BLAKE2b-256 d70c10ab441607dd5e4afbf2eac6fc886bdd8a2abe3918fe08169f2828fa1416

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page