Skip to content

Commit

Permalink
Add some more documentation on command template (#128)
Browse files Browse the repository at this point in the history
* Add some more documentation on command template

* Fix doc syntax in plugins/modules/icinga_command_template.py

Co-authored-by: Sebastian Gumprich <[email protected]>

Co-authored-by: Sebastian Gumprich <[email protected]>
  • Loading branch information
ioguix and rndmh3ro authored Jul 16, 2021
1 parent 5eda3f9 commit 5ae1f30
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions plugins/modules/icinga_command_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@
arguments:
description:
- Arguments of the command template.
- Each argument can take either a string, a json or a dict
- When using a dict as argument value, the following properties are supported.
C(skip_key), C(repeat_key), C(required), C(order), C(description)),
C(set_if), C(value).
- The C(value) property can be either a string, a json or a dict. When used as a dict, you can define
its C(type) as C(Function) and set its C(body) property as an Icinga DSL piece of config.
type: "dict"
"""

Expand Down Expand Up @@ -135,6 +141,11 @@
set_if: $centreon_verbose$
'--warning':
value: $centreon_warning$
'--dummy-arg':
description: "dummy arg using Icinga DSL code"
value:
type: "Function"
body: 'return macro("$dummy_var$")'
command: "/opt/centreon-plugins/centreon_plugins.pl"
command_type: "PluginCheck"
object_name: centreon-plugins-template
Expand Down

0 comments on commit 5ae1f30

Please sign in to comment.