
This change makes each step of the kolla deployment aware of the port database was configured to listen on. It defaults mariadb_port to database_port. Change-Id: I8e85d5732015afc0a5481cb33e0b629fdfa84a1b Closes-Bug: #1576151 DocImpact
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
---
|
|
- name: Starting haproxy container
|
|
kolla_docker:
|
|
action: "start_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
image: "{{ haproxy_image_full }}"
|
|
name: "haproxy"
|
|
privileged: True
|
|
volumes:
|
|
- "{{ node_config_directory }}/haproxy/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "haproxy_socket:/var/lib/kolla/haproxy/"
|
|
- "heka_socket:/var/lib/kolla/heka/"
|
|
|
|
- name: Starting keepalived container
|
|
kolla_docker:
|
|
action: "start_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
image: "{{ keepalived_image_full }}"
|
|
name: "keepalived"
|
|
privileged: True
|
|
volumes:
|
|
- "{{ node_config_directory }}/keepalived/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "/lib/modules:/lib/modules:ro"
|
|
- "haproxy_socket:/var/lib/kolla/haproxy/"
|
|
- "heka_socket:/var/lib/kolla/heka/"
|
|
|
|
- name: Ensuring latest haproxy config is used
|
|
command: docker exec haproxy /usr/local/bin/kolla_ensure_haproxy_latest_config
|
|
register: status
|
|
changed_when: status.stdout.find('changed') != -1
|
|
|
|
- name: Waiting for virtual IP to appear
|
|
wait_for:
|
|
host: "{{ kolla_internal_vip_address }}"
|
|
port: "{{ database_port }}"
|