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|
|
admin.vm.provider PROVIDER do |vm|
|
||||||
vm.memory = MULTINODE ? get_setting(:operator, :memory) : get_setting(:aio, :memory)
|
vm.memory = MULTINODE ? get_setting(:operator, :memory) : get_setting(:aio, :memory)
|
||||||
vm.cpus = MULTINODE ? get_setting(:operator, :cpus) : get_setting(:aio, :cpus)
|
vm.cpus = MULTINODE ? get_setting(:operator, :cpus) : get_setting(:aio, :cpus)
|
||||||
end
|
if PROVIDER == "libvirt"
|
||||||
admin.vm.provider "libvirt" do |vm|
|
|
||||||
vm.graphics_ip = GRAPHICSIP
|
vm.graphics_ip = GRAPHICSIP
|
||||||
end
|
end
|
||||||
|
end
|
||||||
admin.hostmanager.aliases = "operator"
|
admin.hostmanager.aliases = "operator"
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -186,10 +186,10 @@ Vagrant.configure(2) do |config|
|
|||||||
node.vm.provider PROVIDER do |vm|
|
node.vm.provider PROVIDER do |vm|
|
||||||
vm.memory = get_setting(node_type.to_sym, :memory)
|
vm.memory = get_setting(node_type.to_sym, :memory)
|
||||||
vm.cpus = get_setting(node_type.to_sym, :cpus)
|
vm.cpus = get_setting(node_type.to_sym, :cpus)
|
||||||
end
|
if PROVIDER == "libvirt"
|
||||||
node.vm.provider "libvirt" do |vm|
|
|
||||||
vm.graphics_ip = GRAPHICSIP
|
vm.graphics_ip = GRAPHICSIP
|
||||||
end
|
end
|
||||||
|
end
|
||||||
node.hostmanager.aliases = hostname
|
node.hostmanager.aliases = hostname
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user