theforeman.foreman.redhat_manifest (0.8.1) — module

Interact with a Red Hat Satellite Subscription Manifest

Authors: Sean O'Keeffe (@sean797)

preview | supported by community

Install collection

Install with ansible-galaxy collection install theforeman.foreman:==0.8.1


Add to requirements.yml

  collections:
    - name: theforeman.foreman
      version: 0.8.1

Description

Download and modify a Red Hat Satellite Subscription Manifest

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create katello.example.com Manifest and add 7 sub
  redhat_manifest:
    name: "katello.example.com"
    username: "john-smith"
    password: "changeme"
    pool_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    quantity: 7
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure my manifest has 10 of one subs in it and export
  redhat_manifest:
    uuid: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
    username: john-smith
    password: changeme
    pool_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    quantity: 10
    path: /root/manifest.zip
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove all of one subs from katello.example.com
  redhat_manifest:
    name: katello.example.com
    username: john-smith
    password: changeme
    pool_id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    pool_state: absent

Inputs

    
name:
    description:
    - Manifest Name
    type: str

path:
    description:
    - path to export the manifest
    type: path

uuid:
    description:
    - Manifest uuid
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Manifest state
    type: str

portal:
    default: https://subscription.rhsm.redhat.com
    description:
    - Red Hat Portal subscription access address
    type: str

pool_id:
    description:
    - Subscription pool_id
    type: str

password:
    description:
    - Password for user accessing Foreman server
    required: true
    type: str

quantity:
    description:
    - quantity of pool_id Subscriptions
    type: int

username:
    description:
    - Username on Foreman server
    required: true
    type: str

pool_state:
    choices:
    - present
    - absent
    default: present
    description:
    - Subscription state
    type: str

validate_certs:
    default: true
    description:
    - Validate Portal SSL
    type: bool