846c15d8e1
This change adds support to comfigure tty, it was enabled by default but a recent patch removed it. Some services such as Karaf in opendaylight requires a TTY during startup. Closes-Bug: #1806662 Change-Id: Ia4335523b727d0e45505cbb1efb40ccf04c27db7
64 lines
2.5 KiB
YAML
64 lines
2.5 KiB
YAML
---
|
|
project_name: "opendaylight"
|
|
|
|
opendaylight_services:
|
|
opendaylight:
|
|
container_name: "opendaylight"
|
|
image: "{{ opendaylight_image_full }}"
|
|
enabled: True
|
|
privileged: True
|
|
group: "opendaylight"
|
|
host_in_groups: "{{ inventory_hostname in groups['opendaylight'] }}"
|
|
volumes:
|
|
- "{{ node_config_directory }}/opendaylight/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
dimensions: "{{ opendaylight_dimensions }}"
|
|
tty: True
|
|
haproxy:
|
|
opendaylight_api:
|
|
enabled: "{{ enable_opendaylight }}"
|
|
mode: "http"
|
|
port: "{{ opendaylight_haproxy_restconf_port }}"
|
|
backend_http_extra:
|
|
- "balance source"
|
|
custom_member_list: "{{ api_haproxy_members.split(';') }}"
|
|
opendaylight_api_backup:
|
|
enabled: "{{ enable_opendaylight }}"
|
|
mode: "http"
|
|
port: "{{ opendaylight_haproxy_restconf_port_backup }}"
|
|
backend_http_extra:
|
|
- "balance source"
|
|
custom_member_list: "{{ backup_api_haproxy_members.split(';') }}"
|
|
opendaylight_websocket:
|
|
enabled: "{{ enable_opendaylight }}"
|
|
mode: "http"
|
|
port: "{{ opendaylight_websocket_port }}"
|
|
backend_http_extra:
|
|
- "balance source"
|
|
|
|
####################
|
|
# HAProxy
|
|
####################
|
|
api_haproxy_members: "{% for host in groups['opendaylight'] %}server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ opendaylight_restconf_port }} check inter 2000 rise 2 fall 5;{% endfor %}"
|
|
backup_api_haproxy_members: "{% for host in groups['opendaylight'] %}server {{ hostvars[host]['ansible_hostname'] }} {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ opendaylight_restconf_port_backup }} check inter 2000 rise 2 fall 5;{% endfor %}"
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
|
|
opendaylight_install_type: "{{ kolla_install_type }}"
|
|
opendaylight_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ opendaylight_install_type }}-opendaylight"
|
|
opendaylight_tag: "{{ openstack_release }}"
|
|
opendaylight_image_full: "{{ opendaylight_image }}:{{ opendaylight_tag }}"
|
|
opendaylight_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
###################
|
|
# Java Opts
|
|
###################
|
|
|
|
# JAVA_MAX_MEM param
|
|
opendaylight_java_max_mem: "8g"
|
|
# JAVA_MAX_PERM_MEM param
|
|
opendaylight_java_max_perm_mem: "512m"
|