Puppet Class: hadoop::httpfs::install

Defined in:
manifests/httpfs/install.pp

Overview

Class hadoop::httpfs::install



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'manifests/httpfs/install.pp', line 3

class hadoop::httpfs::install {
  include ::stdlib
  contain hadoop::common::install

  ensure_packages($hadoop::packages_httpfs)

  ::hadoop_lib::postinstall{ 'hadoop-httpfs':
    alternatives => $::hadoop::alternatives_httpfs,
  }

  if $::hadoop::alternatives_ssl and $::hadoop::alternatives_ssl != '' and "${::hadoop::version}." =~ /^2(\.)?/ {
    if $hadoop::https {
      $conf = '/etc/hadoop-httpfs/tomcat-conf.https'
    } else {
      $conf = '/etc/hadoop-httpfs/tomcat-conf.dist'
    }
    alternatives{$::hadoop::alternatives_ssl:
      path => $conf,
    }

    Package[$hadoop::packages_httpfs] -> Alternatives[$::hadoop::alternatives_ssl]
  }

  Package[$hadoop::packages_httpfs] -> ::Hadoop_lib::Postinstall['hadoop-httpfs']
}