From f5fcc868b2e89aaaea03cc2ddfba57b88a491994 Mon Sep 17 00:00:00 2001
From: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Date: Mon, 18 Dec 2017 10:31:54 +0100
Subject: [PATCH] nova: add an option for no console

On AArch64 we run VMs without any graphics so nova console is not
available. For now we had to disable it by hand but it can be automated.

Change-Id: Ib903044493ca98c0dd29d3096f66272e130668b0
---
 ansible/roles/nova/templates/nova.conf.j2 | 5 +++++
 etc/kolla/globals.yml                     | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ansible/roles/nova/templates/nova.conf.j2 b/ansible/roles/nova/templates/nova.conf.j2
index e4566e7dab..006bd17b61 100644
--- a/ansible/roles/nova/templates/nova.conf.j2
+++ b/ansible/roles/nova/templates/nova.conf.j2
@@ -84,6 +84,11 @@ html5proxy_base_url = {{ public_protocol }}://{{ kolla_external_fqdn }}:{{ nova_
 {% endif %}
 html5proxy_host = {{ api_interface_address }}
 html5proxy_port = {{ nova_spicehtml5proxy_port }}
+{% elif nova_console == 'none' %}
+[vnc]
+enabled = false
+[spice]
+enabled = false
 {% endif %}
 {% if enable_nova_serialconsole_proxy | bool %}
 [serial_console]
diff --git a/etc/kolla/globals.yml b/etc/kolla/globals.yml
index 9234f576f7..ba488ee5b8 100644
--- a/etc/kolla/globals.yml
+++ b/etc/kolla/globals.yml
@@ -133,7 +133,7 @@ kolla_internal_vip_address: "10.10.10.254"
 # Valid options are [ True, False ]
 #openstack_logging_debug: "False"
 
-# Valid options are [ novnc, spice, rdp ]
+# Valid options are [ none, novnc, spice, rdp ]
 #nova_console: "novnc"
 
 # OpenStack services can be enabled or disabled with these options