Puppet Class: role::elasticsearch::relforge

Defined in:
modules/role/manifests/elasticsearch/relforge.pp

Overview

Class: role::elasticsearch::relforge

This class sets up Elasticsearch for relevance forge.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'modules/role/manifests/elasticsearch/relforge.pp', line 5

class role::elasticsearch::relforge {
    include ::standard
    include ::profile::base::firewall
    include ::profile::elasticsearch::cirrus
    include ::profile::mjolnir::kafka_msearch_daemon

    icinga::monitor::elasticsearch::base_checks { $::hostname:
        ports => [9200, 9400]
    }

    system::role { 'elasticsearch::relforge':
        ensure      => 'present',
        description => 'elasticsearch relforge',
    }

    # the relforge cluster is serving labs, it should never be connected from
    # production, except from mwmaint hosts to import production indices.
    $maintenance_hosts = join($network::constants::special_hosts['production']['maintenance_hosts'], ' ')

    ::ferm::service {
        default:
            ensure => present,
            proto  => 'tcp',
            port   => '9243',
            srange => "(${maintenance_hosts})",
        ;
        'elastic-main-https-mwmaint-9243':
            port   => '9243',
        ;
        'elastic-small-alpha-https-mwmaint-9443':
            port   => '9443',
        ;
    }

}