theforeman.foreman.katello_content_view_filter (0.8.1) — module

Create and Manage Katello content View filters

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

Create and Manage Katello content View filters


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Exclude csh
  katello_content_view_filter:
    username: "admin"
    password: "changeme"
    server_url: "https://foreman.example.com"
    name: "package filter 1"
    organization: "Default Organization"
    content_view: Web Servers
    filter_type: "rpm"
    package_name: tcsh
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Include newer csh versions
  katello_content_view_filter:
    username: "admin"
    password: "changeme"
    server_url: "https://foreman.example.com"
    name: "package filter 1"
    organization: "Default Organization"
    content_view: Web Servers
    filter_type: "rpm"
    package_name: tcsh
    min_version: 6.20.00
    inclusion: True

Inputs

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

types:
    default:
    - bugfix
    - enhancement
    - security
    description:
    - erratum types (enhancement, bugfix, security)
    elements: str
    type: list

version:
    description:
    - package version
    type: str

end_date:
    description:
    - erratum end date (YYYY-MM-DD)
    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

date_type:
    choices:
    - issued
    - updated
    default: updated
    description:
    - Search using the 'Issued On' or 'Updated On'
    - Only valid on I(filter_type=erratum).
    type: str

errata_id:
    description:
    - erratum id
    type: str

inclusion:
    default: false
    description:
    - Create an include filter
    type: bool

rule_name:
    aliases:
    - package_name
    - package_group
    - tag
    description:
    - Content view filter rule name or package name
    - If omitted, the value of I(name) will be used if necessary
    type: str

rule_state:
    choices:
    - present
    - absent
    default: present
    description:
    - State of the content view filter rule
    type: str

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

start_date:
    description:
    - erratum start date (YYYY-MM-DD)
    type: str

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

filter_type:
    choices:
    - rpm
    - package_group
    - erratum
    - docker
    description:
    - Content view filter type
    required: true
    type: str

max_version:
    description:
    - package maximum version
    type: str

min_version:
    description:
    - package minimum version
    type: str

architecture:
    description:
    - package architecture
    type: str

content_view:
    description:
    - Name of the content view
    required: true
    type: str

filter_state:
    choices:
    - present
    - absent
    default: present
    description:
    - State of the content view filter
    type: str

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

repositories:
    default: []
    description:
    - List of repositories that include name and product
    - An empty Array means all current and future repositories
    elements: dict
    type: list

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

original_packages:
    description:
    - Include all RPMs with no errata
    type: bool