Puppet Class: opensearch_dashboards::config

Defined in:
manifests/config.pp

Summary

Configure OpenSearch Dashboards.

Overview



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

class opensearch_dashboards::config {
  assert_private()

  if $opensearch_dashboards::manage_config {
    $config_directory = $opensearch_dashboards::package_source ? {
      'archive' => "${opensearch_dashboards::package_directory}/config",
      default   => '/etc/opensearch-dashboards',
    }

    file { "${config_directory}/opensearch_dashboards.yml":
      ensure  => file,
      owner   => 'opensearch-dashboards',
      group   => 'opensearch-dashboards',
      mode    => '0640',
      content => $opensearch_dashboards::settings.stdlib::to_yaml,
    }
  }
}