Puppet Class: profile::elasticsearch::relforge

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

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

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


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 2

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

    # 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',
        ;
    }
}