Puppet Class: profile::elasticsearch::relforge

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

Overview

Parameters:

  • maintenance_hosts (Array[Stdlib::IP::Address]) (defaults to: hiera('maintenance_hosts'))
  • cumin_masters (Array[Stdlib::IP::Address]) (defaults to: hiera('cumin_masters'))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'modules/profile/manifests/elasticsearch/relforge.pp', line 1

class profile::elasticsearch::relforge (
    Array[Stdlib::IP::Address] $maintenance_hosts = hiera('maintenance_hosts'),
    Array[Stdlib::IP::Address] $cumin_masters = hiera('cumin_masters'),
) {
    include ::profile::elasticsearch::cirrus
    include ::profile::elasticsearch::monitor::base_checks
    include ::profile::mjolnir::kafka_msearch_daemon

    # the relforge cluster is serving labs, it should never be connected from
    # production, except from mwmaint hosts to import production indices and the
    # cumin masters to run cookboks
    $srange = join($maintenance_hosts + $cumin_masters, ' ')
    ::ferm::service {
        default:
            ensure => present,
            proto  => 'tcp',
            srange => "(${srange})",
        ;
        'elastic-main-https-9243':
            port   => '9243',
        ;
        'elastic-small-alpha-https-9443':
            port   => '9443',
        ;
    }
}