aboutsummaryrefslogtreecommitdiffstats
path: root/kud/hosting_providers
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2019-03-19 11:03:40 -0700
committerVictor Morales <victor.morales@intel.com>2019-03-22 17:04:37 -0700
commit70d9c37da6c03df2f2be0a47432a75a7651342e8 (patch)
tree1a7b0baf8de9f5a0a34abae83a560ae848e7b1d2 /kud/hosting_providers
parent8cdd50b6a06aef5cb0541e74a07b10bd4b01b589 (diff)
Enable random_hostname vagrant-libvirt value
This configuration value allows to generate Libvirt instances with randomly domain names generated. As result, it's possible to use this project in the same server but in different folders at the same time. As part of the change, it was necessary to centraliza some Libvirt common configurations. Change-Id: Ie6adf3f40de7a8cced875b0c899738f9f6449181 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
Diffstat (limited to 'kud/hosting_providers')
-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"