Puppet Class: profile::hadoop::yarn_proxy

Defined in:
modules/profile/manifests/hadoop/yarn_proxy.pp

Overview

SPDX-License-Identifier: Apache-2.0 Class: profile::hadoop::yarn_proxy

Sets up a yarn ldap auth http proxy to the Hadoop ResourceManager web interface.



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
# File 'modules/profile/manifests/hadoop/yarn_proxy.pp', line 6

class profile::hadoop::yarn_proxy (
) {
    require profile::hadoop::httpd
    require profile::analytics::httpd::utils
    require profile::hadoop::common

    $server_name = $::realm ? {
        'production' => 'yarn.wikimedia.org',
        'labs'       => "yarn-${::wmcs_project}.${::site}.wmnet",
    }

    $resourcemanager_primary_host = $profile::hadoop::common::resourcemanager_hosts[0]

    profile::idp::client::httpd::site{ 'yarn.wikimedia.org':
        vhost_content    => 'profile/idp/client/httpd-yarn.erb',
        proxied_as_https => true,
        vhost_settings   => { 'res_manager' => $resourcemanager_primary_host },
        required_groups  => [
            'cn=ops,ou=groups,dc=wikimedia,dc=org',
            'cn=wmf,ou=groups,dc=wikimedia,dc=org',
            'cn=nda,ou=groups,dc=wikimedia,dc=org',
        ],
    }

    profile::auto_restarts::service { 'apache2': }
    profile::auto_restarts::service { 'envoyproxy': }
}