Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[cm] Updates init to include hdfs initialize

  • Loading branch information...
commit 4e27789153396f354c9bfc2c610aa24449b5a326 1 parent 36b04ea
@ashrithr ashrithr authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 cm/manifests/init.pp
View
10 cm/manifests/init.pp
@@ -27,7 +27,7 @@
#
# Copyright 2012 Cloudwick Technologies, unless otherwise noted.
#
-class cm($role, $pass = 1) {
+class cm($role, $pass = 1, $hdfs_enabled = true) {
if ($pass == 1) {
if ($role == 'server') {
class { 'cm::server': } ->
@@ -39,7 +39,15 @@
if ($role == 'server') {
class { 'cm::server': } ->
class { 'cm::agent': } ->
+ cm::api::cluster { $cm::params::cm_cluster_name:
+ cluster_version => $cm::params::cm_cluster_ver
+ } ->
class { 'cm::api::parcels::configure': }
+ if ($hdfs_enabled == true) {
+ class { 'cm::hdfs_init':
+ require => Class['cm::api::parcels::configure']
+ }
+ }
} else {
class { 'cm::agent': }
}
Please sign in to comment.
Something went wrong with that request. Please try again.