Puppet Class: toil::opensearch_dashboards_restart

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

Overview

Parameters:

  • ensure (Any) (defaults to: present)


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

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

  systemd::timer::job { 'opensearch-dashboards-periodic-restart':
    ensure          => $ensure,
    logging_enabled => false,
    user            => 'root',
    description     => 'Restart opensearch-dashboards periodically for slow memory leak T327161',
    command         => '/usr/bin/systemctl try-restart opensearch-dashboards.service',
    splay           => 3600, # seconds
    interval        => {
      'start'    => 'OnCalendar',
      'interval' => 'Wednesday 16:00 UTC',
    },
  }

}