kolla-ansible/ansible/roles/opendaylight/templates/opendaylight.json.j2
Zhijiang Hu 98b06a0586 Let haproxy to be ODL websocket's frontend
This PS does:
1) Let haproxy to be ODL websocket's frontend and listen on port 8185.
2) Add 10-rest-connector.xml config file template for ODL container.
3) ODL websocket backend listen only on api interface, port is also
8185.

Closes-Bug: #1745323

Change-Id: Id330d610c7cd8a239b0f77c8f5f47422d48b9977
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2018-01-31 02:54:09 -05:00

97 lines
3.4 KiB
Django/Jinja

{
"command": "start-odl",
"config_files": [
{
"source": "{{ container_config_directory }}/start-odl",
"dest": "/usr/local/bin/start-odl",
"owner": "odl",
"perm": "0655"
},
{
"source": "{{ container_config_directory }}/org.apache.karaf.features.cfg",
"dest": "/opt/opendaylight/etc/org.apache.karaf.features.cfg",
"owner": "odl",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/org.opendaylight.ovsdb.library.cfg",
"dest": "/opt/opendaylight/etc/org.opendaylight.ovsdb.library.cfg",
"owner": "odl",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/tomcat-server.xml",
"dest": "/opt/opendaylight/configuration/tomcat-server.xml",
"owner": "odl",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/jetty.xml",
"dest": "/opt/opendaylight/etc/jetty.xml",
"owner": "odl",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/org.ops4j.pax.logging.cfg",
"dest": "/opt/opendaylight/etc/org.ops4j.pax.logging.cfg",
"owner": "odl",
"perm": "0600"
},
{
"source": "/var/lib/kolla/config_files/custom.properties",
"dest": "/opt/opendaylight/etc/custom.properties",
"owner": "odl",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/netvirt-impl-config_netvirt-impl-config.xml",
"dest": "/opt/opendaylight/etc/opendaylight/datastore/initial/config/netvirt-impl-config_netvirt-impl-config.xml",
"owner": "odl",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/netvirt-aclservice-config.xml",
"dest": "/opt/opendaylight/etc/opendaylight/datastore/initial/config/netvirt-aclservice-config.xml",
"owner": "odl",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/setenv",
"dest": "/opt/opendaylight/bin/setenv",
"owner": "odl",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/akka.conf",
"dest": "/opt/opendaylight/configuration/initial/akka.conf",
"owner": "odl",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/modules.conf",
"dest": "/opt/opendaylight/configuration/initial/modules.conf",
"owner": "odl",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/module-shards.conf",
"dest": "/opt/opendaylight/configuration/initial/module-shards.conf",
"owner": "odl",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/10-rest-connector.xml",
"dest": "/opt/opendaylight/etc/opendaylight/karaf/10-rest-connector.xml",
"owner": "odl",
"perm": "0600"
}
],
"permissions": [
{
"path": "/var/log/kolla/opendaylight",
"owner": "odl:odl",
"recurse": true
}
]
}