Commit 083c7add authored by Decoupes Remy's avatar Decoupes Remy
Browse files

add variable in vagranfile

No related merge requests found
Showing with 4 additions and 2 deletions
+4 -2
### Configuration parameters ###
NUMBER_OF_DATANODE = 2
### end of Configuration parameters ###
Vagrant.configure("2") do |config| Vagrant.configure("2") do |config|
config.vm.define "namenode" do |namenode| config.vm.define "namenode" do |namenode|
...@@ -17,7 +19,7 @@ Vagrant.configure("2") do |config| ...@@ -17,7 +19,7 @@ Vagrant.configure("2") do |config|
end end
# Number of datanode # Number of datanode
N = 2 N = NUMBER_OF_DATANODE
(1..2).each do |machine_id| (1..2).each do |machine_id|
config.vm.define "datanode#{machine_id}" do |machine| config.vm.define "datanode#{machine_id}" do |machine|
machine.vm.box = "generic/debian10" machine.vm.box = "generic/debian10"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment