diff options
author | Albin Vass <albin.vass@volvocars.com> | 2020-04-03 10:59:00 +0200 |
---|---|---|
committer | Albin Vass <albin.vass@gmail.com> | 2020-05-12 19:01:51 +0200 |
commit | 518cf7fe5eb82e1c850615f860010acd857be899 (patch) | |
tree | c8c344977f83a357587c5bc356a717f816aff7d2 /doc/source/discussion/components.rst | |
parent | d873dc84ef34f052a83608cff609b8ec6f4c5719 (diff) | |
download | zuul-518cf7fe5eb82e1c850615f860010acd857be899.tar.gz |
Enables whitelisting and configuring callbacks
Change-Id: Ida7b84795d922b85ec9cc6161ab1203fb82da825
Diffstat (limited to 'doc/source/discussion/components.rst')
-rw-r--r-- | doc/source/discussion/components.rst | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/source/discussion/components.rst b/doc/source/discussion/components.rst index ba36c89c6..7cf715313 100644 --- a/doc/source/discussion/components.rst +++ b/doc/source/discussion/components.rst @@ -845,6 +845,31 @@ The following sections of ``zuul.conf`` are used by the executor: Value to pass to `git config user.name <https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup>`_. +.. attr:: ansible_callback "<name>" + + To whitelist ansible callback ``<name>``. Any attributes found is this section + will be added to the ``callback_<name>`` section in ansible.cfg. + + An example of what configuring the builtin mail callback would look like. + The configuration in zuul.conf. + + .. code-block:: ini + + [ansible_callback "mail"] + to = user@example.org + sender = zuul@example.org + + Would generate the following in ansible.cfg: + + .. code-block:: ini + + [defaults] + callback_whitelist = mail + + [callback_mail] + to = user@example.org + sender = zuul@example.org + Operation ~~~~~~~~~ |