Convert haproxy to kolla_docker
Change-Id: Iff39395010f47099e7dbbb9ddf7c014756455e91 Partially-Implements: blueprint kolla-docker-module
This commit is contained in:
parent
bc1cc939d2
commit
a6eba02256
@ -1,46 +1,26 @@
|
|||||||
---
|
---
|
||||||
- name: Starting keepalived container
|
- name: Starting keepalived container
|
||||||
docker:
|
kolla_docker:
|
||||||
tty: True
|
action: "start_container"
|
||||||
net: host
|
common_options: "{{ docker_common_options }}"
|
||||||
pull: "{{ docker_pull_policy }}"
|
|
||||||
restart_policy: "{{ docker_restart_policy }}"
|
|
||||||
restart_policy_retry: "{{ docker_restart_policy_retry }}"
|
|
||||||
state: reloaded
|
|
||||||
registry: "{{ docker_registry }}"
|
|
||||||
username: "{{ docker_registry_username }}"
|
|
||||||
password: "{{ docker_registry_password }}"
|
|
||||||
insecure_registry: "{{ docker_insecure_registry }}"
|
|
||||||
name: keepalived
|
|
||||||
image: "{{ keepalived_image_full }}"
|
image: "{{ keepalived_image_full }}"
|
||||||
|
name: "keepalived"
|
||||||
privileged: True
|
privileged: True
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ node_config_directory }}/keepalived/:{{ container_config_directory }}/:ro"
|
- "{{ node_config_directory }}/keepalived/:{{ container_config_directory }}/:ro"
|
||||||
- "/run:/run"
|
- "/run:/run"
|
||||||
- "/lib/modules:/lib/modules:ro"
|
- "/lib/modules:/lib/modules:ro"
|
||||||
env:
|
|
||||||
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
|
||||||
|
|
||||||
- name: Starting HAProxy container
|
- name: Starting haproxy container
|
||||||
docker:
|
kolla_docker:
|
||||||
tty: True
|
action: "start_container"
|
||||||
net: host
|
common_options: "{{ docker_common_options }}"
|
||||||
pull: "{{ docker_pull_policy }}"
|
|
||||||
restart_policy: "{{ docker_restart_policy }}"
|
|
||||||
restart_policy_retry: "{{ docker_restart_policy_retry }}"
|
|
||||||
state: reloaded
|
|
||||||
registry: "{{ docker_registry }}"
|
|
||||||
username: "{{ docker_registry_username }}"
|
|
||||||
password: "{{ docker_registry_password }}"
|
|
||||||
insecure_registry: "{{ docker_insecure_registry }}"
|
|
||||||
name: haproxy
|
|
||||||
image: "{{ haproxy_image_full }}"
|
image: "{{ haproxy_image_full }}"
|
||||||
|
name: "haproxy"
|
||||||
privileged: True
|
privileged: True
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ node_config_directory }}/haproxy/:{{ container_config_directory }}/:ro"
|
- "{{ node_config_directory }}/haproxy/:{{ container_config_directory }}/:ro"
|
||||||
- "/run:/run"
|
- "/run:/run"
|
||||||
env:
|
|
||||||
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
|
||||||
|
|
||||||
- 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
|
||||||
|
Loading…
Reference in New Issue
Block a user