aboutsummaryrefslogtreecommitdiff
path: root/bigtop-deploy/puppet
diff options
context:
space:
mode:
authorKirill Morozov <kirill_morozov@epam.ru>2016-08-26 11:01:51 +0100
committerKonstantin Boudnik <konstantin_boudnik@epam.com>2016-09-10 15:54:19 -0700
commit833180eafd61d5bb2cfcbb0e8925169b5cfecf7e (patch)
treee1e69bfe2c55af3a98488f5a9858cfc0a33cbb12 /bigtop-deploy/puppet
parent5b6079f0fedf6e7e0ee30a75869cea784c7037e0 (diff)
BIGTOP-2521: code fixed according require parser=future
Signed-off-by: Konstantin Boudnik <konstantin_boudnik@epam.com>
Diffstat (limited to 'bigtop-deploy/puppet')
-rw-r--r--bigtop-deploy/puppet/README.md2
-rw-r--r--bigtop-deploy/puppet/manifests/site.pp2
-rw-r--r--bigtop-deploy/puppet/modules/alluxio/manifests/init.pp4
-rw-r--r--bigtop-deploy/puppet/modules/flink/manifests/init.pp4
-rw-r--r--bigtop-deploy/puppet/modules/hadoop/manifests/init.pp48
-rw-r--r--bigtop-deploy/puppet/modules/hadoop_hbase/manifests/init.pp12
-rw-r--r--bigtop-deploy/puppet/modules/hadoop_oozie/manifests/init.pp6
-rw-r--r--bigtop-deploy/puppet/modules/hadoop_pig/manifests/init.pp2
-rw-r--r--bigtop-deploy/puppet/modules/hadoop_zookeeper/manifests/init.pp4
-rw-r--r--bigtop-deploy/puppet/modules/kafka/manifests/init.pp2
-rw-r--r--bigtop-deploy/puppet/modules/qfs/manifests/init.pp14
-rw-r--r--bigtop-deploy/puppet/modules/spark/manifests/init.pp28
-rw-r--r--bigtop-deploy/puppet/modules/zeppelin/manifests/init.pp2
13 files changed, 64 insertions, 66 deletions
diff --git a/bigtop-deploy/puppet/README.md b/bigtop-deploy/puppet/README.md
index 692c3952..8adc7b88 100644
--- a/bigtop-deploy/puppet/README.md
+++ b/bigtop-deploy/puppet/README.md
@@ -142,7 +142,7 @@ bigtop::bigtop_repo_uri: "http://bigtop-repos.s3.amazonaws.com/releases/1.1.0/ub
And finally execute
```
-puppet apply -d --modulepath="bigtop-deploy/puppet/modules:/etc/puppet/modules" bigtop-deploy/puppet/manifests/site.pp
+puppet apply -d --parser future --modulepath="bigtop-deploy/puppet/modules:/etc/puppet/modules" bigtop-deploy/puppet/manifests
```
When ignite-hadoop accelerator is deployed the client configs are placed under
`/etc/hadoop/ignite.client.conf`. All one needs to do to run Mapreduce jobs on ignite-hadoop grid
diff --git a/bigtop-deploy/puppet/manifests/site.pp b/bigtop-deploy/puppet/manifests/site.pp
index 4af8039f..e6227f54 100644
--- a/bigtop-deploy/puppet/manifests/site.pp
+++ b/bigtop-deploy/puppet/manifests/site.pp
@@ -68,8 +68,6 @@ package { $jdk_package_name:
noop => $jdk_preinstalled,
}
-import "cluster.pp"
-
node default {
$roles_enabled = hiera("bigtop::roles_enabled", false)
diff --git a/bigtop-deploy/puppet/modules/alluxio/manifests/init.pp b/bigtop-deploy/puppet/modules/alluxio/manifests/init.pp
index 66151cad..104133ea 100644
--- a/bigtop-deploy/puppet/modules/alluxio/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/alluxio/manifests/init.pp
@@ -41,7 +41,7 @@ class alluxio {
}
class master {
- include common
+ include alluxio::common
exec {
"alluxio formatting":
@@ -61,7 +61,7 @@ class alluxio {
}
class worker {
- include common
+ include alluxio::common
if ( $fqdn == $alluxio::common::master_host ) {
notice("alluxio ---> master host")
diff --git a/bigtop-deploy/puppet/modules/flink/manifests/init.pp b/bigtop-deploy/puppet/modules/flink/manifests/init.pp
index ae79fe45..221d62dd 100644
--- a/bigtop-deploy/puppet/modules/flink/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/flink/manifests/init.pp
@@ -35,7 +35,7 @@ class flink {
}
class jobmanager {
- include common
+ include flink::common
service { "flink-jobmanager":
ensure => running,
@@ -49,7 +49,7 @@ class flink {
}
class taskmanager {
- include common
+ include flink::common
service { "flink-taskmanager":
ensure => running,
diff --git a/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp b/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp
index 430e3416..69e26bb6 100644
--- a/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp
@@ -49,7 +49,7 @@ class hadoop ($hadoop_security_authentication = "simple",
}
if ("mapred-app" in $roles) {
- include hadoop::mapred-app
+ include hadoop::mapred_app
}
if ("nodemanager" in $roles) {
@@ -153,7 +153,7 @@ class hadoop ($hadoop_security_authentication = "simple",
$kerberos_realm = $hadoop::kerberos_realm,
) inherits hadoop {
- include common
+ include hadoop::common
package { "hadoop-yarn":
ensure => latest,
@@ -234,7 +234,7 @@ class hadoop ($hadoop_security_authentication = "simple",
$sshfence_keydir = "$hadoop_ha_sshfence_user_home/.ssh"
$sshfence_keypath = "$sshfence_keydir/id_sshfence"
- include common
+ include hadoop::common
# Check if test mode is enforced, so we can install hdfs ssh-keys for passwordless
if ($testonly_hdfs_sshkeys == "yes") {
@@ -378,7 +378,7 @@ class hadoop ($hadoop_security_authentication = "simple",
$hadoop_security_authentication = $hadoop::hadoop_security_authentication,
$kerberos_realm = $hadoop::kerberos_realm,
) inherits hadoop {
- include common_hdfs
+ include hadoop::common_hdfs
package { "hadoop-mapreduce":
ensure => latest,
@@ -413,7 +413,7 @@ class hadoop ($hadoop_security_authentication = "simple",
class datanode (
$hadoop_security_authentication = $hadoop::hadoop_security_authentication,
) inherits hadoop {
- include common_hdfs
+ include hadoop::common_hdfs
package { "hadoop-hdfs-datanode":
ensure => latest,
@@ -440,7 +440,7 @@ class hadoop ($hadoop_security_authentication = "simple",
ensure => directory,
owner => hdfs,
group => hdfs,
- mode => 755,
+ mode => '755',
require => [ Package["hadoop-hdfs"] ],
}
}
@@ -452,7 +452,7 @@ class hadoop ($hadoop_security_authentication = "simple",
$hadoop_security_authentcation = $hadoop::hadoop_security_authentication,
$kerberos_realm = $hadoop::kerberos_realm,
) inherits hadoop {
- include common_hdfs
+ include hadoop::common_hdfs
if ($hadoop_security_authentication == "kerberos") {
kerberos::host_keytab { "httpfs":
@@ -503,7 +503,7 @@ class hadoop ($hadoop_security_authentication = "simple",
}
class kinit {
- include common_hdfs
+ include hadoop::common_hdfs
exec { "HDFS kinit":
command => "/usr/bin/kinit -kt /etc/hdfs.keytab hdfs/$fqdn && /usr/bin/kinit -R",
@@ -551,7 +551,7 @@ class hadoop ($hadoop_security_authentication = "simple",
$standby_bootstrap_retries = 10,
# milliseconds
$standby_bootstrap_retry_interval = 30000) {
- include common_hdfs
+ include hadoop::common_hdfs
if ($hadoop::common_hdfs::ha != 'disabled') {
file { $hadoop::common_hdfs::sshfence_keydir:
@@ -697,7 +697,7 @@ class hadoop ($hadoop_security_authentication = "simple",
ensure => directory,
owner => hdfs,
group => hdfs,
- mode => 700,
+ mode => '700',
require => [Package["hadoop-hdfs"]],
}
}
@@ -720,7 +720,7 @@ class hadoop ($hadoop_security_authentication = "simple",
}
class secondarynamenode {
- include common_hdfs
+ include hadoop::common_hdfs
package { "hadoop-hdfs-secondarynamenode":
ensure => latest,
@@ -743,7 +743,7 @@ class hadoop ($hadoop_security_authentication = "simple",
}
class journalnode {
- include common_hdfs
+ include hadoop::common_hdfs
package { "hadoop-hdfs-journalnode":
ensure => latest,
@@ -765,14 +765,14 @@ class hadoop ($hadoop_security_authentication = "simple",
ensure => directory,
owner => 'hdfs',
group => 'hdfs',
- mode => 755,
+ mode => '755',
require => [Package["hadoop-hdfs"]],
}
}
class resourcemanager {
- include common_yarn
+ include hadoop::common_yarn
package { "hadoop-yarn-resourcemanager":
ensure => latest,
@@ -790,7 +790,7 @@ class hadoop ($hadoop_security_authentication = "simple",
}
class proxyserver {
- include common_yarn
+ include hadoop::common_yarn
package { "hadoop-yarn-proxyserver":
ensure => latest,
@@ -808,7 +808,7 @@ class hadoop ($hadoop_security_authentication = "simple",
}
class historyserver {
- include common_mapred_app
+ include hadoop::common_mapred_app
package { "hadoop-mapreduce-historyserver":
ensure => latest,
@@ -827,8 +827,8 @@ class hadoop ($hadoop_security_authentication = "simple",
class nodemanager {
- include common_mapred_app
- include common_yarn
+ include hadoop::common_mapred_app
+ include hadoop::common_yarn
package { "hadoop-yarn-nodemanager":
ensure => latest,
@@ -849,27 +849,27 @@ class hadoop ($hadoop_security_authentication = "simple",
ensure => directory,
owner => yarn,
group => yarn,
- mode => 755,
+ mode => '755',
require => [Package["hadoop-yarn"]],
}
}
- class mapred-app {
- include common_mapred_app
+ class mapred_app {
+ include hadoop::common_mapred_app
hadoop::create_storage_dir { $hadoop::common_mapred_app::mapred_data_dirs: } ->
file { $hadoop::common_mapred_app::mapred_data_dirs:
ensure => directory,
owner => yarn,
group => yarn,
- mode => 755,
+ mode => '755',
require => [Package["hadoop-mapreduce"]],
}
}
class client {
- include common_mapred_app
- include common_yarn
+ include hadoop::common_mapred_app
+ include hadoop::common_yarn
$hadoop_client_packages = $operatingsystem ? {
/(OracleLinux|CentOS|RedHat|Fedora)/ => [ "hadoop-doc", "hadoop-hdfs-fuse", "hadoop-client", "hadoop-libhdfs", "hadoop-debuginfo" ],
diff --git a/bigtop-deploy/puppet/modules/hadoop_hbase/manifests/init.pp b/bigtop-deploy/puppet/modules/hadoop_hbase/manifests/init.pp
index a168e341..fb1de968 100644
--- a/bigtop-deploy/puppet/modules/hadoop_hbase/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/hadoop_hbase/manifests/init.pp
@@ -36,14 +36,14 @@ class hadoop_hbase {
}
}
- class client-package {
+ class client_package {
package { "hbase":
ensure => latest,
- }
+ }
}
class common_config ($rootdir, $zookeeper_quorum, $kerberos_realm = "", $heap_size="1024") {
- include client-package
+ include hadoop_hbase::client_package
if ($kerberos_realm) {
require kerberos::client
kerberos::host_keytab { "hbase":
@@ -68,7 +68,7 @@ class hadoop_hbase {
}
class client($thrift = false) {
- include common_config
+ include hadoop_hbase::common_config
if ($thrift) {
package { "hbase-thrift":
@@ -87,7 +87,7 @@ class hadoop_hbase {
}
class server {
- include common_config
+ include hadoop_hbase::common_config
package { "hbase-regionserver":
ensure => latest,
@@ -104,7 +104,7 @@ class hadoop_hbase {
}
class master {
- include common_config
+ include hadoop_hbase::common_config
package { "hbase-master":
ensure => latest,
diff --git a/bigtop-deploy/puppet/modules/hadoop_oozie/manifests/init.pp b/bigtop-deploy/puppet/modules/hadoop_oozie/manifests/init.pp
index 80100860..7a3c62d2 100644
--- a/bigtop-deploy/puppet/modules/hadoop_oozie/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/hadoop_oozie/manifests/init.pp
@@ -17,15 +17,15 @@ class hadoop_oozie {
class deploy ($roles) {
if ("oozie-client" in $roles) {
- include client
+ include hadoop_oozie::client
}
if ("oozie-server" in $roles) {
include hadoop::init_hdfs
- include server
+ include hadoop_oozie::server
Class['Hadoop::Init_hdfs'] -> Class['Hadoop_oozie::Server']
if ("mapred-app" in $roles) {
- Class['Hadoop::Mapred-app'] -> Class['Hadoop_oozie::Server']
+ Class['Hadoop::Mapred_app'] -> Class['Hadoop_oozie::Server']
}
}
}
diff --git a/bigtop-deploy/puppet/modules/hadoop_pig/manifests/init.pp b/bigtop-deploy/puppet/modules/hadoop_pig/manifests/init.pp
index 9582ffd0..49f871e5 100644
--- a/bigtop-deploy/puppet/modules/hadoop_pig/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/hadoop_pig/manifests/init.pp
@@ -17,7 +17,7 @@ class hadoop_pig {
class deploy ($roles) {
if ("pig-client" in $roles) {
- include client
+ include hadoop_pig::client
}
}
diff --git a/bigtop-deploy/puppet/modules/hadoop_zookeeper/manifests/init.pp b/bigtop-deploy/puppet/modules/hadoop_zookeeper/manifests/init.pp
index 31a609e3..5d3ee95c 100644
--- a/bigtop-deploy/puppet/modules/hadoop_zookeeper/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/hadoop_zookeeper/manifests/init.pp
@@ -43,7 +43,7 @@ class hadoop_zookeeper (
class client (
$kerberos_realm = $hadoop_zookeeper::kerberos_realm,
) inherits hadoop_zookeeper {
- include common
+ include hadoop_zookeeper::common
package { "zookeeper":
ensure => latest,
@@ -64,7 +64,7 @@ class hadoop_zookeeper (
$ensemble = [$myid, "localhost:2888:3888"],
$kerberos_realm = $hadoop_zookeeper::kerberos_realm,
) inherits hadoop_zookeeper {
- include common
+ include hadoop_zookeeper::common
package { "zookeeper-server":
ensure => latest,
diff --git a/bigtop-deploy/puppet/modules/kafka/manifests/init.pp b/bigtop-deploy/puppet/modules/kafka/manifests/init.pp
index f44b7378..482b51b8 100644
--- a/bigtop-deploy/puppet/modules/kafka/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/kafka/manifests/init.pp
@@ -17,7 +17,7 @@ class kafka {
class deploy ($roles) {
if ('kafka-server' in $roles) {
- include server
+ include kafka::server
}
}
diff --git a/bigtop-deploy/puppet/modules/qfs/manifests/init.pp b/bigtop-deploy/puppet/modules/qfs/manifests/init.pp
index c1602719..82de8185 100644
--- a/bigtop-deploy/puppet/modules/qfs/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/qfs/manifests/init.pp
@@ -38,12 +38,12 @@ class qfs {
ensure => directory,
owner => root,
group => root,
- mode => 0755,
+ mode => '0755',
}
}
class metaserver {
- include common
+ include qfs::common
package { "qfs-metaserver":
ensure => latest,
@@ -63,7 +63,7 @@ class qfs {
ensure => directory,
owner => qfs,
group => qfs,
- mode => 0755,
+ mode => '0755',
before => Service['qfs-metaserver'],
require => [
File[$qfs::common::storage_dirs[0]],
@@ -98,7 +98,7 @@ class qfs {
}
class chunkserver {
- include common
+ include qfs::common
package { "qfs-chunkserver":
ensure => latest,
@@ -118,7 +118,7 @@ class qfs {
ensure => directory,
owner => qfs,
group => qfs,
- mode => 0755,
+ mode => '0755',
before => Service['qfs-chunkserver'],
require => [
File[$qfs::common::storage_dirs],
@@ -138,7 +138,7 @@ class qfs {
}
class client {
- include common
+ include qfs::common
package { [
"qfs-client",
@@ -155,7 +155,7 @@ class qfs {
file { "/usr/bin/hadoop-qfs":
content => template("qfs/hadoop-qfs"),
- mode => 0755,
+ mode => '0755',
}
}
}
diff --git a/bigtop-deploy/puppet/modules/spark/manifests/init.pp b/bigtop-deploy/puppet/modules/spark/manifests/init.pp
index f5a2d648..54377825 100644
--- a/bigtop-deploy/puppet/modules/spark/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/spark/manifests/init.pp
@@ -17,32 +17,32 @@ class spark {
class deploy ($roles) {
if ('spark-client' in $roles) {
- include client
+ include spark::client
}
if ('spark-on-yarn' in $roles) {
- include yarn
+ include spark::yarn
}
if ('spark-yarn-slave' in $roles) {
- include yarn_slave
+ include spark::yarn_slave
}
if ('spark-master' in $roles) {
- include master
+ include spark::master
}
if ('spark-worker' in $roles) {
- include worker
+ include spark::worker
}
if ('spark-history-server' in $roles) {
- include history_server
+ include spark::history_server
}
}
class client {
- include common
+ include spark::common
package { 'spark-python':
ensure => latest,
@@ -56,7 +56,7 @@ class spark {
}
class master {
- include common
+ include spark::common
package { "spark-master":
ensure => latest,
@@ -75,7 +75,7 @@ class spark {
}
class worker {
- include common
+ include spark::common
package { "spark-worker":
ensure => latest,
@@ -94,7 +94,7 @@ class spark {
}
class history_server {
- include common
+ include spark::common
package { 'spark-history-server':
ensure => latest,
@@ -113,13 +113,13 @@ class spark {
}
class yarn {
- include common
- include datanucleus
+ include spark::common
+ include spark::datanucleus
}
class yarn_slave {
- include yarn_shuffle
- include datanucleus
+ include spark::yarn_shuffle
+ include spark::datanucleus
}
class yarn_shuffle {
diff --git a/bigtop-deploy/puppet/modules/zeppelin/manifests/init.pp b/bigtop-deploy/puppet/modules/zeppelin/manifests/init.pp
index 98c6e8f3..9c231bc8 100644
--- a/bigtop-deploy/puppet/modules/zeppelin/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/zeppelin/manifests/init.pp
@@ -17,7 +17,7 @@ class zeppelin {
class deploy ($roles) {
if ('zeppelin-server' in $roles) {
- include server
+ include zeppelin::server
}
}