Puppet Class: opensearch_dashboards::service

Defined in:
manifests/service.pp

Summary

Handle OpenSearch Dashboards service.

Overview



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

class opensearch_dashboards::service {
  assert_private()

  if $opensearch_dashboards::manage_service {
    if $opensearch_dashboards::package_source == 'archive' {
      systemd::unit_file { 'opensearch-dashboards.service':
        ensure  => 'present',
        content => epp('opensearch_dashboards/opensearch-dashboards.service.epp'),
        notify  => Service['opensearch-dashboards'],
      }
    }

    service { 'opensearch-dashboards':
      ensure => $opensearch_dashboards::service_ensure,
      enable => $opensearch_dashboards::service_enable,
    }
  }
}