aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-03-26 09:00:24 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-26 09:00:24 +0000
commit967ff89e7dd42a374e5313447e92489bf27ac2d0 (patch)
tree4fd38b6d98430a5f90f673aa563fecc943a31f70
parent728875c2f904aa20c826565d21bbfd1de750cd75 (diff)
parent70d9c37da6c03df2f2be0a47432a75a7651342e8 (diff)
Merge "Enable random_hostname vagrant-libvirt value"
-rw-r--r--kud/hosting_providers/vagrant/Vagrantfile9
1 files changed, 6 insertions, 3 deletions
diff --git a/kud/hosting_providers/vagrant/Vagrantfile b/kud/hosting_providers/vagrant/Vagrantfile
index 105c7e99..83ac68c2 100644
--- a/kud/hosting_providers/vagrant/Vagrantfile
+++ b/kud/hosting_providers/vagrant/Vagrantfile
@@ -69,6 +69,12 @@ Vagrant.configure("2") do |config|
config.proxy.enabled = { docker: false }
end
end
+ config.vm.provider 'libvirt' do |v|
+ v.nested = true
+ v.cpu_mode = 'host-passthrough'
+ v.management_network_address = "192.168.121.0/27"
+ v.random_hostname = true
+ end
nodes.each do |node|
config.vm.define node['name'] do |nodeconfig|
@@ -90,9 +96,6 @@ Vagrant.configure("2") do |config|
nodeconfig.vm.provider 'libvirt' do |v|
v.memory = node['memory']
v.cpus = node['cpus']
- v.nested = true
- v.cpu_mode = 'host-passthrough'
- v.management_network_address = "192.168.121.0/27"
nodeconfig.vm.provision 'shell' do |sh|
sh.path = "node.sh"
if node.has_key? "volumes"