redhat.satellite.smart_class_parameter – Manage Smart Class Parameters
Note
This plugin is part of the redhat.satellite collection (version 3.0.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install redhat.satellite
.
To use it in a playbook, specify: redhat.satellite.smart_class_parameter
.
New in version 1.0.0: of redhat.satellite
Synopsis
Update Smart Class Parameters.
Smart Class Parameters are created/deleted for Puppet classes during import and cannot be created or deleted otherwise.
Requirements
The below requirements are needed on the host that executes this module.
requests
Parameters
Examples
- name: "Update prometheus::server alertmanagers_config param default value"
redhat.satellite.smart_class_parameter:
puppetclass_name: "prometheus::server"
parameter: alertmanagers_config
override: true
required: true
default_value: /etc/prometheus/alert.yml
server_url: "https://satellite.example.com"
username: "admin"
password: "changeme"
state: present
- name: "Update prometheus::server alertmanagers_config param default value"
redhat.satellite.smart_class_parameter:
puppetclass_name: "prometheus::server"
parameter: alertmanagers_config
override: true
override_value_order:
- fqdn
- hostgroup
- domain
required: true
default_value: /etc/prometheus/alert.yml
server_url: "https://satellite.example.com"
username: "admin"
password: "changeme"
override_values:
- match: domain=example.com
value: foo
- match: domain=foo.example.com
omit: true
state: present
Return Values
Common return values are documented here, the following are the fields unique to this module: