theforeman.foreman.foreman callback – Sends events to Foreman
Note
This callback plugin is part of the theforeman.foreman collection (version 2.2.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 theforeman.foreman
.
To use it in a playbook, specify: theforeman.foreman.foreman
.
Requirements
The below requirements are needed on the local controller node that executes this callback.
whitelisting in configuration
requests (python library)
Parameters
Parameter |
Comments |
---|---|
X509 certificate to authenticate to Foreman if https is used Default: “/etc/foreman/client_cert.pem” Configuration:
|
|
the corresponding private key Default: “/etc/foreman/client_key.pem” Configuration:
|
|
When set, callback does not perform HTTP calls but stores results in a given directory. For each report, new file in the form of SEQ_NO-hostname.json is created. For each facts, new file in the form of SEQ_NO-hostname.json is created. The value must be a valid directory. This is meant for debugging and testing purposes. When set to blank (default) this functionality is turned off. Default: “” Configuration:
|
|
Toggle to make the callback plugin disable itself even if it is loaded. It can be set to ‘1’ to prevent the plugin from being used even if it gets loaded. Default: 0 Configuration:
|
|
URL of the Foreman server. Default: “http://localhost:3000” Configuration:
|
|
Toggle to decide whether to verify the Foreman certificate. It can be set to ‘1’ to verify SSL certificates using the installed CAs or to a path pointing to a CA bundle. Set to ‘0’ to disable certificate checking. Default: 1 Configuration:
|
Hint
Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.