17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'manifests/tungstenhadoop/cdh5/params.pp', line 17
class tungsten::tungstenhadoop::cdh5::params (
) {
unless $architecture =~ /(?i:x86_64|amd64)/ {
fail("The ${module_name} module is not able to install Hadoop on the ${architecture} architecture.")
}
if ($operatingsystem =~ /(?i:centos|redhat|oel|OracleLinux|amazon)/) {
if ($operatingsystem =~ /(?i:amazon)/) {
$repo = "http://archive.cloudera.com/cdh5/one-click-install/redhat/${::epel_version}/${::architecture}/cloudera-cdh-5-0.${::architecture}.rpm"
} else {
$repo = "http://archive.cloudera.com/cdh5/one-click-install/redhat/${::operatingsystemmajrelease}/${::architecture}/cloudera-cdh-5-0.${::architecture}.rpm"
}
} elsif ($operatingsystem =~ /(?i:debian|ubuntu)/) {
fail("The ${module_name} module is not able to install Cloudera 5 on an ${::operatingsystem} based system.")
} else {
fail("The ${module_name} module is not able to install Cloudera 5 on an ${::operatingsystem} based system.")
}
}
|