Puppet Class: profile::hadoop::yarn_proxy_testcluster

Defined in:
modules/profile/manifests/hadoop/yarn_proxy_testcluster.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.

Parameters:

  • ldap_config (Hash) (defaults to: lookup('ldap'))


6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'modules/profile/manifests/hadoop/yarn_proxy_testcluster.pp', line 6

class profile::hadoop::yarn_proxy_testcluster (
    Hash $ldap_config        = lookup('ldap'),
) {
    require profile::hadoop::httpd
    require ::profile::analytics::httpd::utils
    require ::profile::hadoop::common
    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 = 'yarn.wikimedia.org'

    httpd::site { 'yarn.wikimedia.org':
        content => template('profile/hadoop/yarn-testcluster.vhost.erb'),
    }

    if !defined(Profile::Auto_restarts::Service['apache2']) {
        profile::auto_restarts::service { 'apache2': }
    }
}