Puppet Class: cloudera::gplextras
- Inherits:
- cloudera::params
- Defined in:
- manifests/gplextras.pp
Overview
Class: cloudera::gplextras
This class handles installing the Cloudera GPL Extras.
Parameters:
- ensure
-
Ensure if present or absent. Default: present
- autoupgrade
-
Upgrade package automatically, if there is a newer version. Default: false
- service_ensure
-
Ensure if service is running or stopped. Default: running
Actions:
Installs GPL Extras.
Requires:
Nothing.
Sample Usage:
class { 'cloudera::gplextras': }
Authors:
Mike Arnold <mike@razorsedge.org>
Copyright:
Copyright © 2014 Mike Arnold, unless otherwise noted.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'manifests/gplextras.pp', line 39
class cloudera::gplextras (
$ensure = $cloudera::params::ensure,
$autoupgrade = $cloudera::params::safe_autoupgrade
) inherits cloudera::params {
# Validate our booleans
validate_bool($autoupgrade)
if ($::operatingsystem in [ 'CentOS', 'RedHat', 'OEL', 'OracleLinux' ]) and ($cloudera::params::majdistrelease == 5) {
require '::epel'
}
package { 'hadoop-lzo-cdh4':
ensure => 'present',
tag => 'cloudera-gplextras',
}
package { 'hadoop-lzo-cdh4-mr1':
ensure => 'present',
tag => 'cloudera-gplextras',
}
package { 'impala-lzo':
ensure => 'present',
tag => 'cloudera-gplextras',
}
}
|