Commit Graph

4 Commits

Author SHA1 Message Date
Nils Philippsen
a95808355c Make scripts to sync log files more robust
Previously, an expired certificate on log01 made sending messages out of
the scripts fail, which caused a couple days worth of lost logs.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2023-11-28 00:02:59 +00:00
Nils Philippsen
cb61463c26 Allow presets for message bodies
This lets users of simple_message_to_bus predefine items which should be
present in all message bodies this way:

export MSGBODY_PRESET="key1=value1 key2=value2"

This doesn't work with spaces in either keys or values, any quotation
will be used verbatim.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-09-09 12:40:56 +02:00
Nils Philippsen
a3203d29d9 Get rid of implicit message topic prefix
Callers of simple_message_to_bus need to set and export MSGTOPIC_PREFIX
explicitly.

This decouples the fedora-messaging-utils and web-data-analysis roles.

Additionally, don't assume /bin/sh is /bin/bash.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-09-09 12:40:56 +02:00
Adam Saleh
db936062b3 Add more message-based tracing to log01 scripts 2021-08-11 11:18:17 +00:00