Merge "Let haproxy to be ODL websocket's frontend"
This commit is contained in:
commit
ad2b856178
@ -328,6 +328,7 @@ opendaylight_tomcat_redirect_port: "8663"
|
|||||||
opendaylight_karaf_ssh_port: "8101"
|
opendaylight_karaf_ssh_port: "8101"
|
||||||
opendaylight_openflow_port: "6653"
|
opendaylight_openflow_port: "6653"
|
||||||
opendaylight_ovsdb_port: "6641"
|
opendaylight_ovsdb_port: "6641"
|
||||||
|
opendaylight_websocket_port: "8185"
|
||||||
|
|
||||||
vitrage_api_port: "8999"
|
vitrage_api_port: "8999"
|
||||||
|
|
||||||
|
@ -1330,4 +1330,11 @@ listen opendaylight_api_backup
|
|||||||
server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ opendaylight_restconf_port_backup }} check fall 5 inter 2000 rise 2
|
server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ opendaylight_restconf_port_backup }} check fall 5 inter 2000 rise 2
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
listen opendaylight_websocket
|
||||||
|
bind {{ kolla_internal_vip_address }}:{{ opendaylight_websocket_port }}
|
||||||
|
balance source
|
||||||
|
{% for host in groups['opendaylight'] %}
|
||||||
|
server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ opendaylight_websocket_port }} check fall 5 inter 2000 rise 2
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -28,4 +28,5 @@
|
|||||||
or opendaylight_config_akka | changed
|
or opendaylight_config_akka | changed
|
||||||
or opendaylight_config_modules | changed
|
or opendaylight_config_modules | changed
|
||||||
or opendaylight_config_module_shards | changed
|
or opendaylight_config_module_shards | changed
|
||||||
|
or opendaylight_config_10_rest_connector | changed
|
||||||
or check_opendaylight_containers | changed
|
or check_opendaylight_containers | changed
|
||||||
|
@ -192,6 +192,18 @@
|
|||||||
notify:
|
notify:
|
||||||
- Restart opendaylight container
|
- Restart opendaylight container
|
||||||
|
|
||||||
|
- name: Copying over 10-rest-connector.xml
|
||||||
|
template:
|
||||||
|
src: "{{ item }}"
|
||||||
|
dest: "{{ node_config_directory }}/opendaylight/10-rest-connector.xml"
|
||||||
|
with_first_found:
|
||||||
|
- "{{ node_custom_config }}/opendaylight/{{ inventory_hostname }}/10-rest-connector.xml"
|
||||||
|
- "{{ node_custom_config }}/opendaylight/10-rest-connector.xml"
|
||||||
|
- "10-rest-connector.xml.j2"
|
||||||
|
register: opendaylight_config_10_rest_connector
|
||||||
|
notify:
|
||||||
|
- Restart opendaylight container
|
||||||
|
|
||||||
- name: Check opendaylight containers
|
- name: Check opendaylight containers
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
|
||||||
|
|
||||||
|
This program and the accompanying materials are made available under the
|
||||||
|
terms of the Eclipse Public License v1.0 which accompanies this distribution,
|
||||||
|
and is available at http://www.eclipse.org/legal/epl-v10.html
|
||||||
|
-->
|
||||||
|
<snapshot>
|
||||||
|
<configuration>
|
||||||
|
<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
|
||||||
|
<modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
|
||||||
|
<!-- default OF-switch-connection-provider (port 6633) -->
|
||||||
|
<module>
|
||||||
|
<type xmlns:rest="urn:opendaylight:params:xml:ns:yang:controller:md:sal:rest:connector">rest:rest-connector-impl</type>
|
||||||
|
<name>rest-connector-default-impl</name>
|
||||||
|
<websocket-address>{{ hostvars[inventory_hostname]['ansible_' + hostvars[inventory_hostname]['api_interface']]['ipv4']['address'] }}</websocket-address>
|
||||||
|
<websocket-port>{{ opendaylight_websocket_port }}</websocket-port>
|
||||||
|
<dom-broker>
|
||||||
|
<type xmlns:dom="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">dom:dom-broker-osgi-registry</type>
|
||||||
|
<name>dom-broker</name>
|
||||||
|
</dom-broker>
|
||||||
|
</module>
|
||||||
|
</modules>
|
||||||
|
|
||||||
|
<services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
|
||||||
|
<service>
|
||||||
|
<type xmlns:rest="urn:opendaylight:params:xml:ns:yang:controller:md:sal:rest:connector">rest:rest-connector</type>
|
||||||
|
<instance>
|
||||||
|
<name>rest-connector-default</name>
|
||||||
|
<provider>
|
||||||
|
/modules/module[type='rest-connector-impl'][name='rest-connector-default-impl']
|
||||||
|
</provider>
|
||||||
|
</instance>
|
||||||
|
</service>
|
||||||
|
</services>
|
||||||
|
</data>
|
||||||
|
</configuration>
|
||||||
|
<required-capabilities>
|
||||||
|
<capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:rest:connector?module=opendaylight-rest-connector&revision=2014-07-24</capability>
|
||||||
|
</required-capabilities>
|
||||||
|
</snapshot>
|
@ -78,6 +78,12 @@
|
|||||||
"dest": "/opt/opendaylight/configuration/initial/module-shards.conf",
|
"dest": "/opt/opendaylight/configuration/initial/module-shards.conf",
|
||||||
"owner": "odl",
|
"owner": "odl",
|
||||||
"perm": "0600"
|
"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": [
|
"permissions": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user