Skip to content
Snippets Groups Projects
Commit 7ddad3f3 authored by SamYaple's avatar SamYaple Committed by Sam Yaple
Browse files

Move haproxy socket to volume

Partial-Bug: #1544545
Change-Id: I292bcaeacb080ff4c5ab6b42b7d899039d6b19c4
parent 4a7fa654
No related branches found
No related tags found
No related merge requests found
---
- name: Starting keepalived container
- name: Starting haproxy container
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
image: "{{ keepalived_image_full }}"
name: "keepalived"
image: "{{ haproxy_image_full }}"
name: "haproxy"
privileged: True
volumes:
- "{{ node_config_directory }}/keepalived/:{{ container_config_directory }}/:ro"
- "/run:/run"
- "/lib/modules:/lib/modules:ro"
- "{{ node_config_directory }}/haproxy/:{{ container_config_directory }}/:ro"
- "haproxy_socket:/var/lib/kolla/haproxy/"
- name: Starting haproxy container
- name: Starting keepalived container
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
image: "{{ haproxy_image_full }}"
name: "haproxy"
image: "{{ keepalived_image_full }}"
name: "keepalived"
privileged: True
volumes:
- "{{ node_config_directory }}/haproxy/:{{ container_config_directory }}/:ro"
- "/run:/run"
- "{{ 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
command: docker exec haproxy /usr/local/bin/kolla_ensure_haproxy_latest_config
......
global
daemon
maxconn 4000
stats socket /run/haproxy.sock
stats socket /var/lib/kolla/haproxy/haproxy.sock
defaults
mode http
......
......@@ -3,4 +3,4 @@
# This will return 0 when it successfully talks to the haproxy daemon via the socket
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment