Commit Graph

7 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
aa1f6ddbad Remove crontab validation
The crontab command only implements the `-T` option from version 1.5.6
of cronie but log01 has 1.5.2 (current release in RHEL 8.4).

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-09-22 18:29:27 +02: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
Nils Philippsen
8e05661fc5 Have /usr/local/bin in cron PATH
This lets scripts in cron jobs find /usr/local/bin/simple_message_to_bus
without hard-coding the whole path.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-09-09 12:40:56 +02:00
Nils Philippsen
cce1067c31 Add tasks in fedora-messaging-utils role
Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-08-16 06:02:37 +00:00
Adam Saleh
db936062b3 Add more message-based tracing to log01 scripts 2021-08-11 11:18:17 +00:00