Puppet Class: cdh::oozie

Defined in:
modules/cdh/manifests/oozie.pp

Overview

Class cdh::oozie

Installs the oozie-client package And sets OOZIE_URL in /etc/profile.d/oozie.sh.

Parameters:

  • oozie_host (Any) (defaults to: 'localhost')


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'modules/cdh/manifests/oozie.pp', line 5

class cdh::oozie(
    $oozie_host = 'localhost'
)
{
    # oozie server url
    $url = "http://${oozie_host}:11000/oozie"

    package { 'oozie-client':
        ensure => 'installed',
    }

    # create a file in /etc/profile.d to export OOZIE_URL.
    file { '/etc/profile.d/oozie.sh':
        content => "# NOTE:  This file is managed by Puppet.

export OOZIE_URL='${url}'
",
        mode    => '0444',
    }
}