diff options
Diffstat (limited to 'kud/hosting_providers/vagrant')
-rw-r--r-- | kud/hosting_providers/vagrant/Vagrantfile | 9 |
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" |