summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2018-05-14 09:04:53 -0700
committerVictor Morales <victor.morales@intel.com>2018-05-14 09:04:53 -0700
commitfef9ae28be015084a543634d707973149a0cedb9 (patch)
tree345b86b0d8b84abcc0997d0d69d62aacc5af44bb
parentc993457d9b2a580db9dde2d112ab754a8aaa6c7f (diff)
Add hostname support
According to the AAI wiki entry, in order to start its containers is necessary to have a specific hostname. This patch provides the capability to provide a hostname argument. Change-Id: I8e51e69bfa28534201003d348d99fd95684f2a86 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: AAI-1046
-rw-r--r--Vagrantfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Vagrantfile b/Vagrantfile
index ca6bb8d..506fdee 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -41,6 +41,7 @@ box = {
nodes = [
{
:name => "aai",
+ :hostname => "aai.hbase.simpledemo.onap.org",
:ips => ['10.252.0.6', "192.168.50.6"],
:macs => [],
:cpus => 2,
@@ -483,7 +484,7 @@ Vagrant.configure("2") do |config|
nodeconfig.vm.box = box[provider]
# Set Node name
- nodeconfig.vm.hostname = node[:name]
+ nodeconfig.vm.hostname = if node.has_key? :hostname then node[:hostname] else node[:name] end
# Set Sync Folder
nodeconfig.vm.synced_folder ".", "/vagrant", disabled: true