Simplify logic of vagrantfile
TrivialFix Change-Id: I0af5d5a80f28d8cb8b5f0e7799fd87bcd73e09cf
This commit is contained in:
parent
0f5c22c169
commit
f043d6ea7b
8
dev/vagrant/Vagrantfile
vendored
8
dev/vagrant/Vagrantfile
vendored
@ -166,10 +166,10 @@ Vagrant.configure(2) do |config|
|
||||
admin.vm.provider PROVIDER do |vm|
|
||||
vm.memory = MULTINODE ? get_setting(:operator, :memory) : get_setting(:aio, :memory)
|
||||
vm.cpus = MULTINODE ? get_setting(:operator, :cpus) : get_setting(:aio, :cpus)
|
||||
end
|
||||
admin.vm.provider "libvirt" do |vm|
|
||||
if PROVIDER == "libvirt"
|
||||
vm.graphics_ip = GRAPHICSIP
|
||||
end
|
||||
end
|
||||
admin.hostmanager.aliases = "operator"
|
||||
end
|
||||
|
||||
@ -186,10 +186,10 @@ Vagrant.configure(2) do |config|
|
||||
node.vm.provider PROVIDER do |vm|
|
||||
vm.memory = get_setting(node_type.to_sym, :memory)
|
||||
vm.cpus = get_setting(node_type.to_sym, :cpus)
|
||||
end
|
||||
node.vm.provider "libvirt" do |vm|
|
||||
if PROVIDER == "libvirt"
|
||||
vm.graphics_ip = GRAPHICSIP
|
||||
end
|
||||
end
|
||||
node.hostmanager.aliases = hostname
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user