tests: sets random_hostname to true for libvirt nodes

This will keep us from having name conflicts between our different
testing scenarios.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/1105/head
Andrew Schoen 2016-11-17 15:25:06 -06:00
parent 5ccbd31d5f
commit 63e28248d4
1 changed files with 8 additions and 0 deletions

8
Vagrantfile vendored
View File

@ -195,6 +195,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Libvirt # Libvirt
client.vm.provider :libvirt do |lv| client.vm.provider :libvirt do |lv|
lv.memory = MEMORY lv.memory = MEMORY
lv.random_hostname = true
end end
# Parallels # Parallels
@ -229,6 +230,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Libvirt # Libvirt
rgw.vm.provider :libvirt do |lv| rgw.vm.provider :libvirt do |lv|
lv.memory = MEMORY lv.memory = MEMORY
lv.random_hostname = true
end end
# Parallels # Parallels
@ -263,6 +265,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Libvirt # Libvirt
nfs.vm.provider :libvirt do |lv| nfs.vm.provider :libvirt do |lv|
lv.memory = MEMORY lv.memory = MEMORY
lv.random_hostname = true
end end
# Parallels # Parallels
@ -296,6 +299,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Libvirt # Libvirt
mds.vm.provider :libvirt do |lv| mds.vm.provider :libvirt do |lv|
lv.memory = MEMORY lv.memory = MEMORY
lv.random_hostname = true
end end
# Parallels # Parallels
mds.vm.provider "parallels" do |prl| mds.vm.provider "parallels" do |prl|
@ -328,6 +332,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Libvirt # Libvirt
rbd_mirror.vm.provider :libvirt do |lv| rbd_mirror.vm.provider :libvirt do |lv|
lv.memory = MEMORY lv.memory = MEMORY
lv.random_hostname = true
end end
# Parallels # Parallels
rbd_mirror.vm.provider "parallels" do |prl| rbd_mirror.vm.provider "parallels" do |prl|
@ -360,6 +365,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Libvirt # Libvirt
iscsi_gw.vm.provider :libvirt do |lv| iscsi_gw.vm.provider :libvirt do |lv|
lv.memory = MEMORY lv.memory = MEMORY
lv.random_hostname = true
end end
# Parallels # Parallels
iscsi_gw.vm.provider "parallels" do |prl| iscsi_gw.vm.provider "parallels" do |prl|
@ -392,6 +398,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Libvirt # Libvirt
mon.vm.provider :libvirt do |lv| mon.vm.provider :libvirt do |lv|
lv.memory = MEMORY lv.memory = MEMORY
lv.random_hostname = true
end end
# Parallels # Parallels
@ -452,6 +459,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
lv.storage :file, :device => "hd#{driverletters[d]}", :path => "disk-#{i}-#{d}.disk", :size => '12G', :bus => "ide" lv.storage :file, :device => "hd#{driverletters[d]}", :path => "disk-#{i}-#{d}.disk", :size => '12G', :bus => "ide"
end end
lv.memory = MEMORY lv.memory = MEMORY
lv.random_hostname = true
end end
# Parallels # Parallels