Skip to content

Support list of elasticsearch hosts; use tar command instead of archive module

Compare
Choose a tag to compare
@richm richm released this 28 Jul 21:15

Instead of the archive module, use "tar" command for backup.

Note: having the module 'archive' makes the logging role fail with
an error "couldn't resolve module/action 'archive'." if executed
with ansible-navigator.

Stop using set_fact to set rsyslog_backup_dir in roles/rsyslog/tasks/main.yml
to fix a bug that the backup dir could have repeated
rsyslog.d-{{ ansible_date_time.iso8601_basic_short }}
sub-directories if the logging role is executed multiple times.

Move "logging_purge_confs: true" to TEST CASE 3 in tests_basic_files.yml.

Add a support for list value to server_host in the elasticsearch output

RFE from oVirt:
elasticsearch now allows the server to be a list of servers:
https://www.rsyslog.com/doc/v8-stable/configuration/modules/omelasticsearch.html#server
Is this variable adjusted in Logging repo to be an array?

  • server_host: Host name Elasticsearch is running on. The value
    is a single host or list of hosts. Required.