Puppet Class: toil::rsyslog_tls_remedy

Defined in:
modules/toil/manifests/rsyslog_tls_remedy.pp

Overview

Parameters:

  • ensure (Any) (defaults to: present)


4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'modules/toil/manifests/rsyslog_tls_remedy.pp', line 4

class toil::rsyslog_tls_remedy (
  $ensure = present,
) {

  systemd::timer::job { 'rsyslog-tls-remedy':
    ensure          => $ensure,
    # Don't log to file, use journald
    logging_enabled => false,
    user            => 'root',
    description     => 'Restart rsyslog when TLS listener is not responding T199406',
    command         => '/bin/sh -c "timeout 10s openssl s_client -connect localhost:6514 -quiet </dev/null || systemctl restart rsyslog"',
    interval        => {
      'start'    => 'OnCalendar',
      'interval' => '*-*-* *:00/05:00', # every 5 min
    },
  }

}