Skip to main content

Manifester dynamically generates subscription manifests using the Red Hat Subscription Managament API.

Project description

Manifester

Red Hat subscriptions made manifest.

Description

Manifester is a tool that uses the Red Hat Subscription Management (RHSM) API to dynamically create and populate subscription allocations and to export subscription manifests for use by Red Hat Satellite and other Red Hat products.

Installation

Clone this repository:

git clone https://github.com/SatelliteQE/manifester

Copy and rename the manifester_settings.yaml.example file to manifester_settings.yaml.

An offline token is required to generate an offline token the temporary access tokens used for authenticating to the RHSM API. Either use an existing offline token for an RHSM account or generate one using the instructions in the article Getting started with Red Hat APIs. Add the offline token to manifester_settings.yaml.

From the base directory of the local clone of the manifest repository, install the project to a local Python environment:

pip install .

Configuration

The manifester_settings.yaml file is used to configure manifester via DynaConf.

Multiple types of manifests can be configured in the manifest_category section of manifester_settings.yaml. These types can be differentiated based on the Satellite version of the subscription allocation, the names and quantities of the subscriptions to be added to the manifest, and whether Simple Content Access is enabled on the manifest.

The value of the name setting for each subscription in a manifest must exactly match the name of a subscription available in the account which was used to generate the offline token. One method for determining the subscription names available in an account is to register a system to RHSM and then run subscription manager list --available on that system. A planned future feature of Manifester is a CLI command that will return a list of available subscriptions.

CLI Usage

Currently, the only action supported by the manifester CLI is generating a manifest using the get-manifest subcommand:

manifester get-manifest --manifest-category <manifest category name> --allocation_name <allocation name>

Two options are available for this subcommand. The --manifest_category option is required and must match one of the manifest categories defined in manifester_settings.yaml. The --allocation_name option specifies the name of the subscription allocation in RHSM and is also used in the file name of the manifest archive exported by Manifester. If no value is supplied for --allocation_name, a string of 10 random alphabetic characters will be used for the allocation name.

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

manifester-0.0.5.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

manifester-0.0.5-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file manifester-0.0.5.tar.gz.

File metadata

  • Download URL: manifester-0.0.5.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for manifester-0.0.5.tar.gz
Algorithm Hash digest
SHA256 1f9db566e30c2cdf50165c0183f0c2f64db49455a9d257f42a3128c33d66f158
MD5 f86aaf91d444e9c8d16fc879ea530d2c
BLAKE2b-256 fa2a07b86b5c1225a024b48a26490239270f484fd22da09164649317c2bf3c7f

See more details on using hashes here.

File details

Details for the file manifester-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: manifester-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for manifester-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 deceae024f55f0c229957e6aaf36f57f5d48be95d3a7b8ca88bd1269360bc93c
MD5 8f9a57e56c8a6ea2a92412caf4eceed0
BLAKE2b-256 6e9a1b0ec3a1a7d3dfac3d2c0e0c997e82e6463fb2708a5c11cb95f62f782723

See more details on using hashes here.

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