Puppet Class: profile::hadoop::yarn_proxy

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

Overview

Class: profile::hadoop::yarn_proxy

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

Parameters:

  • ldap_config (Hash) (defaults to: lookup('ldap', Hash, hash, {}))


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

class profile::hadoop::yarn_proxy (
    Hash $ldap_config        = lookup('ldap', Hash, hash, {}),
) {
    require profile::hadoop::common
    require profile::hadoop::httpd
    require ::profile::analytics::httpd::utils
    include ::passwords::ldap::production

    $ldap_server_primary = $ldap_config['ro-server']
    $ldap_server_fallback = $ldap_config['ro-server-fallback']
    $proxypass = $passwords::ldap::production::proxypass

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

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

    # Set up the VirtualHost
    httpd::site { 'yarn.wikimedia.org':
        content => template('profile/hadoop/yarn.vhost.erb'),
        require => File['/var/www/health_check'],
    }
}