Skip to content
Snippets Groups Projects
Commit 558b900e authored by Éric Lemoine's avatar Éric Lemoine
Browse files

Make Vagrant libvirt graphics_ip configurable

TrivialFix

Change-Id: I5c6153016f15b8a0922bdb28c4a03de561b240ee
parent 27aa074f
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,10 @@ PROVIDER ||= "libvirt" ...@@ -19,6 +19,10 @@ PROVIDER ||= "libvirt"
# Either centos or ubuntu # Either centos or ubuntu
DISTRO ||= "centos" DISTRO ||= "centos"
# The libvirt graphics_ip used for each guest. Only applies if PROVIDER
# is libvirt.
GRAPHICSIP ||= "127.0.0.1"
PROVIDER_DEFAULTS ||= { PROVIDER_DEFAULTS ||= {
libvirt: { libvirt: {
centos: { centos: {
...@@ -163,6 +167,9 @@ Vagrant.configure(2) do |config| ...@@ -163,6 +167,9 @@ Vagrant.configure(2) do |config|
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 end
admin.vm.provider "libvirt" do |vm|
vm.graphics_ip = GRAPHICSIP
end
admin.hostmanager.aliases = "operator" admin.hostmanager.aliases = "operator"
end end
...@@ -180,6 +187,9 @@ Vagrant.configure(2) do |config| ...@@ -180,6 +187,9 @@ Vagrant.configure(2) do |config|
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 end
node.vm.provider "libvirt" do |vm|
vm.graphics_ip = GRAPHICSIP
end
node.hostmanager.aliases = hostname node.hostmanager.aliases = hostname
end end
end end
......
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
# Either centos or ubuntu # Either centos or ubuntu
# DISTRO = "centos" # DISTRO = "centos"
# The libvirt graphics_ip used for each guest. Only applies if PROVIDER
# is libvirt.
# GRAPHICSIP = "127.0.0.1"
# PROVIDER_DEFAULTS = { # PROVIDER_DEFAULTS = {
# libvirt: { # libvirt: {
# centos: { # centos: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment