aboutsummaryrefslogtreecommitdiffstats
path: root/contrail-agent/templates/vnc_api_lib.ini
diff options
context:
space:
mode:
Diffstat (limited to 'contrail-agent/templates/vnc_api_lib.ini')
-rw-r--r--contrail-agent/templates/vnc_api_lib.ini21
1 files changed, 21 insertions, 0 deletions
diff --git a/contrail-agent/templates/vnc_api_lib.ini b/contrail-agent/templates/vnc_api_lib.ini
new file mode 100644
index 0000000..4422189
--- /dev/null
+++ b/contrail-agent/templates/vnc_api_lib.ini
@@ -0,0 +1,21 @@
+###############################################################################
+# [ WARNING ]
+# Configuration file maintained by Juju. Local changes may be overwritten.
+###############################################################################
+
+[global]
+WEB_SERVER = {{ api_server }}
+WEB_PORT = {{ api_port }}
+
+[auth]
+{%- if keystone_ip %}
+AUTHN_TYPE = keystone
+AUTHN_PROTOCOL = {{ keystone_protocol }}
+AUTHN_SERVER = {{ keystone_ip }}
+AUTHN_PORT = {{ keystone_public_port }}
+AUTHN_URL = /{{ keystone_api_tokens }}
+# while we don't have keystone cert then we set insecure to True
+insecure = True
+{%- else %}
+AUTHN_TYPE = noauth
+{%- endif %}