Merge "Move haproxy socket to volume"
This commit is contained in:
commit
8c0da19313
@ -1,16 +1,4 @@
|
|||||||
---
|
---
|
||||||
- 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"
|
|
||||||
- "/run:/run"
|
|
||||||
- "/lib/modules:/lib/modules:ro"
|
|
||||||
|
|
||||||
- name: Starting haproxy container
|
- name: Starting haproxy container
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
@ -20,7 +8,19 @@
|
|||||||
privileged: True
|
privileged: True
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ node_config_directory }}/haproxy/:{{ container_config_directory }}/:ro"
|
- "{{ node_config_directory }}/haproxy/:{{ container_config_directory }}/:ro"
|
||||||
- "/run:/run"
|
- "haproxy_socket:/var/lib/kolla/haproxy/"
|
||||||
|
|
||||||
|
- 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"
|
||||||
|
- "/lib/modules:/lib/modules:ro"
|
||||||
|
- "haproxy_socket:/var/lib/kolla/haproxy/"
|
||||||
|
|
||||||
- name: Ensuring latest haproxy config is used
|
- name: Ensuring latest haproxy config is used
|
||||||
command: docker exec haproxy /usr/local/bin/kolla_ensure_haproxy_latest_config
|
command: docker exec haproxy /usr/local/bin/kolla_ensure_haproxy_latest_config
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
global
|
global
|
||||||
daemon
|
daemon
|
||||||
maxconn 4000
|
maxconn 4000
|
||||||
stats socket /run/haproxy.sock
|
stats socket /var/lib/kolla/haproxy/haproxy.sock
|
||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
|
@ -3,4 +3,4 @@
|
|||||||
# This will return 0 when it successfully talks to the haproxy daemon via the socket
|
# This will return 0 when it successfully talks to the haproxy daemon via the socket
|
||||||
# Failures return 1
|
# Failures return 1
|
||||||
|
|
||||||
echo "show info" | socat unix-connect:/run/haproxy.sock stdio
|
echo "show info" | socat unix-connect:/var/lib/kolla/haproxy/haproxy.sock stdio
|
||||||
|
Loading…
Reference in New Issue
Block a user