.. Document meta :orphan: .. |antsibull-internal-nbsp| unicode:: 0xA0 :trim: .. role:: ansible-attribute-support-label .. role:: ansible-attribute-support-property .. role:: ansible-attribute-support-full .. role:: ansible-attribute-support-partial .. role:: ansible-attribute-support-none .. role:: ansible-attribute-support-na .. role:: ansible-option-type .. role:: ansible-option-elements .. role:: ansible-option-required .. role:: ansible-option-versionadded .. role:: ansible-option-aliases .. role:: ansible-option-choices .. role:: ansible-option-choices-entry .. role:: ansible-option-default .. role:: ansible-option-default-bold .. role:: ansible-option-configuration .. role:: ansible-option-returned-bold .. role:: ansible-option-sample-bold .. Anchors .. _ansible_collections.theforeman.foreman.foreman_callback: .. Anchors: short name for ansible.builtin .. Anchors: aliases .. Title theforeman.foreman.foreman callback -- Sends events to Foreman ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. Collection note .. note:: This callback plugin is part of the `theforeman.foreman collection `_ (version 3.7.0). To install it, use: :code:`ansible-galaxy collection install theforeman.foreman`. You need further requirements to be able to use this callback plugin, see :ref:`Requirements ` for details. To use it in a playbook, specify: :code:`theforeman.foreman.foreman`. .. version_added .. contents:: :local: :depth: 1 .. Deprecated Synopsis -------- .. Description - This callback will report facts and task events to Foreman .. Aliases .. Requirements .. _ansible_collections.theforeman.foreman.foreman_callback_requirements: Requirements ------------ The below requirements are needed on the local controller node that executes this callback. - whitelisting in configuration - requests (python library) .. Options Parameters ---------- .. rst-class:: ansible-option-table .. list-table:: :width: 100% :widths: auto :header-rows: 1 * - Parameter - Comments * - .. raw:: html
.. _ansible_collections.theforeman.foreman.foreman_callback__parameter-client_cert: .. _ansible_collections.theforeman.foreman.foreman_callback__parameter-ssl_cert: .. rst-class:: ansible-option-title **client_cert** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: ssl_cert` .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
X509 certificate to authenticate to Foreman if https is used .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`"/etc/foreman/client\_cert.pem"` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entries: .. code-block:: [callback_foreman] ssl_cert = /etc/foreman/client_cert.pem .. code-block:: [callback_foreman] client_cert = /etc/foreman/client_cert.pem - Environment variable: FOREMAN\_SSL\_CERT .. raw:: html
* - .. raw:: html
.. _ansible_collections.theforeman.foreman.foreman_callback__parameter-client_key: .. _ansible_collections.theforeman.foreman.foreman_callback__parameter-ssl_key: .. rst-class:: ansible-option-title **client_key** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-aliases:`aliases: ssl_key` .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
the corresponding private key .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`"/etc/foreman/client\_key.pem"` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entries: .. code-block:: [callback_foreman] ssl_key = /etc/foreman/client_key.pem .. code-block:: [callback_foreman] client_key = /etc/foreman/client_key.pem - Environment variable: FOREMAN\_SSL\_KEY .. raw:: html
* - .. raw:: html
.. _ansible_collections.theforeman.foreman.foreman_callback__parameter-dir_store: .. rst-class:: ansible-option-title **dir_store** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
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. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`""` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: [callback_foreman] dir_store = "" - Environment variable: FOREMAN\_DIR\_STORE .. raw:: html
* - .. raw:: html
.. _ansible_collections.theforeman.foreman.foreman_callback__parameter-disable_callback: .. rst-class:: ansible-option-title **disable_callback** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
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. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`0` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - Environment variable: FOREMAN\_CALLBACK\_DISABLE .. raw:: html
* - .. raw:: html
.. _ansible_collections.theforeman.foreman.foreman_callback__parameter-proxy_url: .. rst-class:: ansible-option-title **proxy_url** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
URL of the Foreman Smart Proxy server. .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: [callback_foreman] proxy_url = VALUE - Environment variable: FOREMAN\_PROXY\_URL .. raw:: html
* - .. raw:: html
.. _ansible_collections.theforeman.foreman.foreman_callback__parameter-report_type: .. rst-class:: ansible-option-title **report_type** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
endpoint type for reports: foreman or proxy .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`"foreman"` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: [callback_foreman] report_type = foreman - Environment variable: FOREMAN\_REPORT\_TYPE .. raw:: html
* - .. raw:: html
.. _ansible_collections.theforeman.foreman.foreman_callback__parameter-url: .. rst-class:: ansible-option-title **url** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` / :ansible-option-required:`required` .. raw:: html
- .. raw:: html
URL of the Foreman server. .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: [callback_foreman] url = VALUE - Environment variable: FOREMAN\_URL - Environment variable: FOREMAN\_SERVER\_URL - Environment variable: FOREMAN\_SERVER .. raw:: html
* - .. raw:: html
.. _ansible_collections.theforeman.foreman.foreman_callback__parameter-verify_certs: .. rst-class:: ansible-option-title **verify_certs** .. raw:: html .. rst-class:: ansible-option-type-line :ansible-option-type:`string` .. raw:: html
- .. raw:: html
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. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`1` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: [callback_foreman] verify_certs = 1 - Environment variable: FOREMAN\_SSL\_VERIFY .. raw:: html
.. Attributes .. Notes .. Seealso .. Examples .. Facts .. Return values .. Status (Presently only deprecated) .. Authors .. 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. .. Extra links Collection links ~~~~~~~~~~~~~~~~ .. raw:: html .. Parsing errors