Puppet Class: profile::elasticsearch::toolforge

Defined in:
modules/profile/manifests/elasticsearch/toolforge.pp

Overview

SPDX-License-Identifier: Apache-2.0

Class: profile::elasticsearch::toolforge

Provisions Elasticsearch node with nginx reverse proxy

Parameters:

  • elastic_settings (Elasticsearch::InstanceParams) (defaults to: lookup('profile::elasticsearch::common_settings'))


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

class profile::elasticsearch::toolforge (
    Elasticsearch::InstanceParams $elastic_settings = lookup('profile::elasticsearch::common_settings'),
){
    include ::profile::elasticsearch

    file { '/usr/share/elasticsearch/plugins':
        ensure => 'directory',
        force  => true,
        owner  => 'root',
        group  => 'root',
        mode   => '0755',
        before => Class['::elasticsearch'],
    }

    prometheus::elasticsearch_exporter { "localhost:${elastic_settings['http_port']}":
        prometheus_port    => 9108,
        elasticsearch_port => $elastic_settings['http_port'],
    }
}