Remove bootstrap.yml abstraction for rabbitmq
Change-Id: I5b163b6a5c0e084deec5937e4fbf04d11fdde01f Partially-Implements: blueprint remove-abstraction-ansible
This commit is contained in:
parent
759cc41647
commit
8419902e8e
@ -4,15 +4,9 @@ project_name: "rabbitmq"
|
|||||||
####################
|
####################
|
||||||
# Docker
|
# Docker
|
||||||
####################
|
####################
|
||||||
docker_message_broker_registry: "{{ docker_registry ~ '/' if docker_registry else '' }}"
|
rabbitmq_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ kolla_install_type }}-rabbitmq"
|
||||||
docker_message_broker_namespace: "{{ docker_namespace }}"
|
rabbitmq_tag: "{{ openstack_release }}"
|
||||||
kolla_message_broker_base_distro: "{{ kolla_base_distro }}"
|
rabbitmq_image_full: "{{ rabbitmq_image }}:{{ rabbitmq_tag }}"
|
||||||
kolla_message_broker_install_type: "{{ kolla_install_type }}"
|
|
||||||
kolla_message_broker_container_name: "rabbitmq"
|
|
||||||
|
|
||||||
docker_message_broker_image: "{{ docker_message_broker_registry }}{{ docker_message_broker_namespace }}/{{ kolla_message_broker_base_distro }}-{{ kolla_message_broker_install_type }}-{{ kolla_message_broker_container_name }}"
|
|
||||||
docker_message_broker_tag: "{{ openstack_release }}"
|
|
||||||
docker_message_broker_image_full: "{{ docker_message_broker_image }}:{{ docker_message_broker_tag }}"
|
|
||||||
|
|
||||||
|
|
||||||
####################
|
####################
|
||||||
|
@ -7,32 +7,48 @@
|
|||||||
failed_when: False
|
failed_when: False
|
||||||
always_run: True
|
always_run: True
|
||||||
|
|
||||||
- include: ../../start.yml
|
- name: Starting RabbitMQ data container
|
||||||
vars:
|
docker:
|
||||||
container_command: "/bin/sleep infinity"
|
docker_api_version: "{{ docker_api_version }}"
|
||||||
container_image: "{{ docker_message_broker_image_full }}"
|
net: host
|
||||||
container_name: "rabbitmq_data"
|
pull: "{{ docker_pull_policy }}"
|
||||||
container_volumes:
|
restart_policy: "{{ docker_restart_policy }}"
|
||||||
- "/var/lib/rabbitmq/"
|
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: rabbitmq_data
|
||||||
|
image: "{{ rabbitmq_image_full }}"
|
||||||
|
command: "/bin/sleep infinity"
|
||||||
|
volumes: "/var/lib/rabbitmq/"
|
||||||
|
|
||||||
- include: ../../start.yml
|
- name: Starting RabbitMQ bootstrap container
|
||||||
vars:
|
docker:
|
||||||
container_detach: "False"
|
docker_api_version: "{{ docker_api_version }}"
|
||||||
container_environment:
|
net: host
|
||||||
|
pull: "{{ docker_pull_policy }}"
|
||||||
|
restart_policy: "no"
|
||||||
|
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: rabbitmq_bootstrap
|
||||||
|
image: "{{ rabbitmq_image_full }}"
|
||||||
|
volumes: "{{ node_config_directory }}/rabbitmq/:/opt/kolla/rabbitmq/:ro"
|
||||||
|
volumes_from:
|
||||||
|
- "rabbitmq_data"
|
||||||
|
env:
|
||||||
KOLLA_BOOTSTRAP:
|
KOLLA_BOOTSTRAP:
|
||||||
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
||||||
RABBITMQ_CLUSTER_COOKIE: "{{ rabbitmq_cluster_cookie }}"
|
RABBITMQ_CLUSTER_COOKIE: "{{ rabbitmq_cluster_cookie }}"
|
||||||
container_image: "{{ docker_message_broker_image_full }}"
|
|
||||||
container_name: "rabbitmq_bootstrap"
|
|
||||||
container_restart_policy: "no"
|
|
||||||
container_volumes:
|
|
||||||
- "{{ node_config_directory }}/rabbitmq/:/opt/kolla/rabbitmq/:ro"
|
|
||||||
container_volumes_from:
|
|
||||||
- "rabbitmq_data"
|
|
||||||
when: exists.rc != 0
|
when: exists.rc != 0
|
||||||
|
|
||||||
- name: Cleaning up boostrap container
|
- name: Cleaning up boostrap container
|
||||||
docker:
|
docker:
|
||||||
image: "{{ docker_message_broker_image_full }}"
|
image: "{{ rabbitmq_image_full }}"
|
||||||
name: "rabbitmq_bootstrap"
|
name: "rabbitmq_bootstrap"
|
||||||
state: "absent"
|
state: "absent"
|
||||||
|
@ -1,11 +1,20 @@
|
|||||||
---
|
---
|
||||||
- include: ../../start.yml
|
- name: Starting RabbitMQ bootstrap container
|
||||||
vars:
|
docker:
|
||||||
container_environment:
|
docker_api_version: "{{ docker_api_version }}"
|
||||||
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
net: host
|
||||||
container_image: "{{ docker_message_broker_image_full }}"
|
pull: "{{ docker_pull_policy }}"
|
||||||
container_name: "rabbitmq"
|
restart_policy: "{{ docker_restart_policy }}"
|
||||||
container_volumes:
|
restart_policy_retry: "{{ docker_restart_policy_retry }}"
|
||||||
- "{{ node_config_directory }}/rabbitmq/:/opt/kolla/rabbitmq/:ro"
|
state: reloaded
|
||||||
container_volumes_from:
|
registry: "{{ docker_registry }}"
|
||||||
|
username: "{{ docker_registry_username }}"
|
||||||
|
password: "{{ docker_registry_password }}"
|
||||||
|
insecure_registry: "{{ docker_insecure_registry }}"
|
||||||
|
name: rabbitmq
|
||||||
|
image: "{{ rabbitmq_image_full }}"
|
||||||
|
volumes: "{{ node_config_directory }}/rabbitmq/:/opt/kolla/rabbitmq/:ro"
|
||||||
|
volumes_from:
|
||||||
- "rabbitmq_data"
|
- "rabbitmq_data"
|
||||||
|
env:
|
||||||
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user