theforeman.foreman.katello_content_view (0.8.1) — module

Create and Manage Katello content views

Authors: Eric D Helms (@ehelms)

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

Create and Manage Katello content views


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Create or update Fedora content view"
  katello_content_view:
    username: "admin"
    password: "changeme"
    server_url: "https://foreman.example.com"
    name: "Fedora CV"
    organization: "My Cool new Organization"
    repositories:
      - name: 'Fedora 26'
        product: 'Fedora'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Create a composite content view"
  katello_content_view:
    username: "admin"
    password: "changeme"
    server_url: "https://foreman.example.com"
    name: "Fedora CCV"
    organization: "My Cool new Organization"
    composite: true
    auto_publish: true
    components:
      - content_view: Fedora CV
        content_view_version: 1.0
      - content_view: Internal CV
        latest: true

Inputs

    
name:
    description:
    - Name of the Katello Content View
    required: true
    type: str

state:
    choices:
    - present
    - present_with_defaults
    - absent
    default: present
    description:
    - State of the entity in Foreman
    - C(present_with_defaults) will ensure the entity exists, but won't update existing
      ones
    type: str

password:
    description: Password of the user accessing the Foreman server
    required: true
    type: str

username:
    description: Username accessing the Foreman server
    required: true
    type: str

composite:
    default: false
    description:
    - A composite view contains other content views.
    type: bool

components:
    description:
    - List of content views to includes content_view and either version or latest.
    - Ignored if I(composite=False).
    elements: dict
    suboptions:
      content_view:
        description:
        - Content View name to be added to the Composite Content View
        required: true
        type: str
      content_view_version:
        aliases:
        - version
        description:
        - Version of the Content View to add
        type: str
      latest:
        default: false
        description:
        - Always use the latest Content View Version
        type: bool
    type: list

server_url:
    description: URL of the Foreman server
    required: true
    type: str

description:
    description:
    - Description of the Content View
    type: str

auto_publish:
    default: false
    description:
    - Auto publish composite view when a new version of a component content view is created.
    - Also note auto publish will only happen when the component is marked "latest".
    type: bool

organization:
    description:
    - Organization that the entity is in
    required: true
    type: str

repositories:
    description:
    - List of repositories that include name and product.
    - Cannot be combined with I(composite=True).
    elements: dict
    suboptions:
      name:
        description:
        - Name of the Repository to be added
        required: true
        type: str
      product:
        description:
        - Product of the Repository to be added
        required: true
        type: str
    type: list

validate_certs:
    aliases:
    - verify_ssl
    default: true
    description: Whether or not to verify the TLS certificates of the Foreman server
    type: bool

solve_dependencies:
    description:
    - Solve RPM dependencies by default on Content View publish
    type: bool