theforeman.foreman.foreman_config_group (0.8.1) — module

Manage (Puppet) config groups using Foreman API

Authors: Baptiste Agasse (@bagasse)

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 Delete Foreman (Puppet) config groups using Foreman API


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: create new config group
  foreman_config_group:
    name: "My config group"
    puppetclasses:
      - ntp
      - mymodule::myclass
    server_url: "https://foreman.example.com"
    username: "admin"
    password: "secret"
    state: present

Inputs

    
name:
    description: The config group name
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - State of the entity in Foreman
    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

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

updated_name:
    description: New config group name. When this parameter is set, the module will not
      be idempotent.
    type: str

puppetclasses:
    description: List of puppet classes to include in this group
    elements: str
    required: false
    type: list

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