push¶
Push and publish content via Pulp.
usage: pubtools-pulp-push [-h] [--debug] [--pulp3-url PULP3_URL]
[--domain DOMAIN] [--pulp3-user PULP3_USER]
[--pulp3-password PULP3_PASSWORD]
[--pulp3-cert PULP3_CERT]
[--pulp3-cert-key PULP3_CERT_KEY]
[--udcache-url UDCACHE_URL]
[--udcache-user UDCACHE_USER]
[--udcache-password UDCACHE_PASSWORD]
[--udcache-certificate UDCACHE_CERTIFICATE]
[--udcache-certificate-key UDCACHE_CERTIFICATE_KEY]
[--pulp-url PULP_URL] [--pulp-user PULP_USER]
[--pulp-password PULP_PASSWORD]
[--pulp-certificate PULP_CERTIFICATE]
[--pulp-certificate-key PULP_CERTIFICATE_KEY]
[--pulp-insecure] [--pulp-throttle PULP_THROTTLE]
[--pulp-fake] [--clean] [--force] [--skip SKIP]
[--pre-push] [--allow-unsigned] [--source SOURCE]
Named Arguments¶
- --debug, -d
Show debug logs; can be provided up to three times to enable more logs
Default:
0- --skip
skip given comma-separated sub-steps
Default:
[]- --pre-push
Pre-push mode: do as much as possible without making content available to end-users, then stop. May be used to improve the performance of a subsequent full push.
Default:
False- --allow-unsigned
Allow pushing unsigned RPMs (forbidden by default)
Default:
False- --source
Source(s) of content to be pushed
Pulp3 environment¶
- --pulp3-url
Pulp3 server URL
- --domain
Domain name for Pulp3 server
- --pulp3-user
Pulp3 username
- --pulp3-password
Pulp3 password (or set PULP3_PASSWORD environment variable)
- --pulp3-cert
Pulp3 certificate
- --pulp3-cert-key
Pulp3 certificate key
Unified Downloads Cache environment¶
- --udcache-url
Base URL of UD cache flush API; if omitted, UD cache flush features are disabled.
- --udcache-user
Username for UD cache flush
- --udcache-password
Password for UD cache flush (or set UDCACHE_PASSWORD)
- --udcache-certificate
Client certificate for UD cache flush (or set UDCACHE_CERT)
- --udcache-certificate-key
Client key for UD cache flush (or set UDCACHE_KEY)
Pulp environment¶
- --pulp-url
Pulp server URL
- --pulp-user
Pulp username
- --pulp-password
Pulp password (or set PULP_PASSWORD environment variable)
- --pulp-certificate
Pulp certificate. Can also be a single file (.pem)
- --pulp-certificate-key
Pulp certificate key
- --pulp-insecure
Allow unverified HTTPS connection to Pulp
Default:
False- --pulp-throttle
Allows to enqueue or run only specified number of Pulp tasks at one moment (or set PULP_THROTTLE environment variable)
- --pulp-fake
Use a fake in-memory Pulp client rather than interacting with a real server. For development/testing only, may have limited functionality.
Default:
False
Publish options¶
Options affecting the behavior of Pulp repo publishes.
- --clean
attempt to delete remote content not in the repo
Default:
False- --force
force publish of repos even if Pulp thinks nothing has changed
Default:
False
Example¶
A typical invocation to push a single advisory would look like this:
pubtools-pulp-push \
--pulp-url https://pulp.example.com/ \
--pulp-user admin \
--pulp-password XXXXX \
--source errata:https://errata.example.com?errata=RHBA-2020:1234
Note the `--source` argument accepts any source of content supported
by the pushsource library.