theforeman.foreman.foreman_model (0.8.1) — module

Manage Foreman hardware models

Authors: Evgeni Golov (@evgeni)

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

Manage Foreman hardware models


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Create ACME Laptop model"
  foreman_model:
    username: "admin"
    password: "changeme"
    server_url: "https://foreman.example.com"
    name: "acme laptop"
    info: "this is the acme laptop"
    state: present

Inputs

    
info:
    description:
    - General description of the hardware model
    type: str

name:
    description:
    - Name of the Foreman hardware model
    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

vendor_class:
    description:
    - The class of the machine as reported by the OpenBoot PROM.
    - This is primarily used by Solaris SPARC builds and can be left blank for other architectures.
    type: str

hardware_model:
    description:
    - The class of CPU supplied in this machine.
    - This is primarily used by Sparc Solaris builds and can be left blank for other architectures.
    type: str

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