aboutsummaryrefslogtreecommitdiffstats
path: root/contrail-agent/templates
diff options
context:
space:
mode:
Diffstat (limited to 'contrail-agent/templates')
-rw-r--r--contrail-agent/templates/contrail-vrouter-agent.conf58
-rw-r--r--contrail-agent/templates/contrail-vrouter-nodemgr.conf6
-rw-r--r--contrail-agent/templates/vnc_api_lib.ini21
3 files changed, 85 insertions, 0 deletions
diff --git a/contrail-agent/templates/contrail-vrouter-agent.conf b/contrail-agent/templates/contrail-vrouter-agent.conf
new file mode 100644
index 0000000..4aaea4d
--- /dev/null
+++ b/contrail-agent/templates/contrail-vrouter-agent.conf
@@ -0,0 +1,58 @@
+###############################################################################
+# [ WARNING ]
+# Configuration file maintained by Juju. Local changes may be overwritten.
+###############################################################################
+
+{%- if control_nodes %}
+
+[CONTROL-NODE]
+servers = {{ control_nodes|join(":5269 ")~ ':5269' }}
+[DNS]
+servers = {{ control_nodes|join(":53 ")~ ':53' }}
+
+{%- endif %}
+
+[DEFAULT]
+{%- if analytics_nodes %}
+collectors = {{ analytics_nodes|join(":8086 ")~ ':8086' }}
+{%- endif %}
+
+# Enable/Disable SSL based XMPP Authentication
+xmpp_auth_enable = {{ ssl_enabled }}
+xmpp_dns_auth_enable = {{ ssl_enabled }}
+{%- if ssl_enabled %}
+xmpp_ca_cert = {{ ssl_ca_path }}
+# xmpp_server_cert=/etc/contrail/ssl/certs/server.pem
+# xmpp_server_key=/etc/contrail/ssl/private/server-privkey.pem
+{%- endif %}
+
+[SANDESH]
+sandesh_ssl_enable = {{ ssl_enabled }}
+introspect_ssl_enable = {{ ssl_enabled }}
+{%- if ssl_enabled %}
+sandesh_ca_cert = {{ ssl_ca_path }}
+# sandesh_certfile=/etc/contrail/ssl/certs/server.pem
+# sandesh_keyfile=/etc/contrail/ssl/private/server-privkey.pem
+{%- endif %}
+
+
+[METADATA]
+{%- if metadata_shared_secret %}
+metadata_proxy_secret = {{ metadata_shared_secret }}
+{%- endif %}
+
+[NETWORKS]
+control_network_ip = {{ control_network_ip }}
+
+[VIRTUAL-HOST-INTERFACE]
+name = vhost0
+ip = {{ vhost_ip }}
+gateway = {{ vhost_gateway }}
+physical_interface = {{ vhost_physical }}
+
+[SERVICE-INSTANCE]
+netns_command = /usr/bin/opencontrail-vrouter-netns
+docker_command = /usr/bin/opencontrail-vrouter-docker
+
+[HYPERVISOR]
+type = kvm
diff --git a/contrail-agent/templates/contrail-vrouter-nodemgr.conf b/contrail-agent/templates/contrail-vrouter-nodemgr.conf
new file mode 100644
index 0000000..678c255
--- /dev/null
+++ b/contrail-agent/templates/contrail-vrouter-nodemgr.conf
@@ -0,0 +1,6 @@
+###############################################################################
+# [ WARNING ]
+# Configuration file maintained by Juju. Local changes may be overwritten.
+###############################################################################
+[COLLECTOR]
+server_list = {{ analytics_nodes|join(":8086 ")~ ':8086' }}
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 %}