theforeman.foreman.smart_class_parameter – Manage Smart Class Parameters¶
Note
This plugin is part of the theforeman.foreman collection.
To install it use: ansible-galaxy collection install theforeman.foreman
.
To use it in a playbook, specify: theforeman.foreman.smart_class_parameter
.
New in version 1.0.0: of theforeman.foreman
Synopsis¶
Update Smart Class Parameters.
Smart Class Parameters are created/deleted for Puppet classes during import and cannot be created or deleted otherwise.
Parameters¶
Examples¶
- name: "Update prometheus::server alertmanagers_config param default value"
theforeman.foreman.smart_class_parameter:
puppetclass_name: "prometheus::server"
parameter: alertmanagers_config
override: true
required: true
default_value: /etc/prometheus/alert.yml
server_url: "https://foreman.example.com"
username: "admin"
password: "changeme"
state: present
- name: "Update prometheus::server alertmanagers_config param default value"
theforeman.foreman.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://foreman.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:
Authors¶
Baptiste Agasse (@bagasse)