codeaffen.foreman.redhat_manifest (1.3.0) — module

Interact with a Red Hat Satellite Subscription Manifest

| "added in version" 1.0.0 of codeaffen.foreman"

Authors: Sean O'Keeffe (@sean797)

Install collection

Install with ansible-galaxy collection install codeaffen.foreman:==1.3.0


Add to requirements.yml

  collections:
    - name: codeaffen.foreman
      version: 1.3.0

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 foreman.example.com Manifest and add 7 sub
  theforeman.foreman.redhat_manifest:
    name: "foreman.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
  theforeman.foreman.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 foreman.example.com
  theforeman.foreman.redhat_manifest:
    name: foreman.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:
    - Red Hat Portal password
    required: true
    type: str

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

username:
    description:
    - Red Hat Portal username
    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