Rabbitmq bootstrap enhancement
Using rabbitmq service defined in default when boot rabbitmq_bootstrap. Not a bug here, just an enhancement. Change-Id: I79f0f7efe3308ed4eb898b85a6370be1bd637d9a
This commit is contained in:
parent
9568f1c790
commit
ddc564d21f
@ -7,6 +7,11 @@ rabbitmq_services:
|
|||||||
group: "{{ role_rabbitmq_groups }}"
|
group: "{{ role_rabbitmq_groups }}"
|
||||||
enabled: true
|
enabled: true
|
||||||
image: "{{ rabbitmq_image_full }}"
|
image: "{{ rabbitmq_image_full }}"
|
||||||
|
bootstrap_environment:
|
||||||
|
KOLLA_BOOTSTRAP:
|
||||||
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
||||||
|
RABBITMQ_CLUSTER_COOKIE: "{{ role_rabbitmq_cluster_cookie }}"
|
||||||
|
RABBITMQ_LOG_DIR: "/var/log/kolla/{{ project_name }}"
|
||||||
environment:
|
environment:
|
||||||
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
||||||
RABBITMQ_CLUSTER_COOKIE: "{{ role_rabbitmq_cluster_cookie }}"
|
RABBITMQ_CLUSTER_COOKIE: "{{ role_rabbitmq_cluster_cookie }}"
|
||||||
|
@ -7,22 +7,18 @@
|
|||||||
register: rabbitmq_volume
|
register: rabbitmq_volume
|
||||||
|
|
||||||
- name: Running RabbitMQ bootstrap container
|
- name: Running RabbitMQ bootstrap container
|
||||||
|
vars:
|
||||||
|
service_name: "rabbitmq"
|
||||||
|
service: "{{ rabbitmq_services[service_name] }}"
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
detach: False
|
detach: False
|
||||||
environment:
|
environment: "{{ service.bootstrap_environment }}"
|
||||||
KOLLA_BOOTSTRAP:
|
image: "{{ service.image }}"
|
||||||
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
|
||||||
RABBITMQ_CLUSTER_COOKIE: "{{ role_rabbitmq_cluster_cookie }}"
|
|
||||||
RABBITMQ_LOG_DIR: "/var/log/kolla/{{ project_name }}"
|
|
||||||
image: "{{ rabbitmq_image_full }}"
|
|
||||||
labels:
|
labels:
|
||||||
BOOTSTRAP:
|
BOOTSTRAP:
|
||||||
name: "{{ project_name }}_bootstrap"
|
name: "{{ project_name }}_bootstrap"
|
||||||
restart_policy: "never"
|
restart_policy: "never"
|
||||||
volumes:
|
volumes: "{{ service.volumes }}"
|
||||||
- "{{ node_config_directory }}/{{ project_name }}/:{{ container_config_directory }}/:ro"
|
|
||||||
- "/etc/localtime:/etc/localtime:ro"
|
|
||||||
- "{{ project_name }}:/var/lib/rabbitmq/"
|
|
||||||
when: rabbitmq_volume | changed
|
when: rabbitmq_volume | changed
|
||||||
|
Loading…
Reference in New Issue
Block a user