artcl_commands_extras
- A dictionary of additional commands to be run during collection. Defined keys will override implicit ones from defaultsartcl_commands
which is not expected to be changed by user.Top level keys are used to uniqly identify a command and determine the default output filename, unless is mentioned via
capture_file
property.cmd
contains the shell command that would be run.collect_log_type
is a the category fromcollect_log_types
list, role will run only commands from that list.
artcl_commands_extras:
key1:
cmd: df
collect_log_type: system
# will save output to /var/log/extras/key1.log
key2:
cmd: touch /foo.txt
collect_log_type: openstack
capture_disable: true # <-- disable implicit std redirection
key3:
cmd: mount -a
collect_log_type: system
capture_file: /mounts.txt # <-- custom capture file location