Convert Murano to kolla_docker
Change-Id: I7be9c91cb31eca5dfc15e8ff0a6ab8f42c5af8dc Partially-Implements: blueprint kolla-docker-module
This commit is contained in:
parent
fff2ccfa0c
commit
2f03fc81ec
@ -36,39 +36,18 @@
|
|||||||
run_once: True
|
run_once: True
|
||||||
delegate_to: "{{ groups['murano-api'][0] }}"
|
delegate_to: "{{ groups['murano-api'][0] }}"
|
||||||
|
|
||||||
- name: Starting Murano bootstrap container
|
- name: Running Murano bootstrap container
|
||||||
docker:
|
kolla_docker:
|
||||||
tty: True
|
action: "start_container"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
detach: False
|
detach: False
|
||||||
net: host
|
environment:
|
||||||
pull: "{{ docker_pull_policy }}"
|
|
||||||
restart_policy: "no"
|
|
||||||
state: reloaded
|
|
||||||
registry: "{{ docker_registry }}"
|
|
||||||
username: "{{ docker_registry_username }}"
|
|
||||||
password: "{{ docker_registry_password }}"
|
|
||||||
insecure_registry: "{{ docker_insecure_registry }}"
|
|
||||||
name: bootstrap_murano
|
|
||||||
image: "{{ murano_api_image_full }}"
|
|
||||||
volumes: "{{ node_config_directory }}/murano-api/:{{ container_config_directory }}/:ro"
|
|
||||||
env:
|
|
||||||
KOLLA_BOOTSTRAP:
|
KOLLA_BOOTSTRAP:
|
||||||
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
||||||
run_once: True
|
|
||||||
delegate_to: "{{ groups['murano-api'][0] }}"
|
|
||||||
when: database_created
|
|
||||||
|
|
||||||
# https://github.com/ansible/ansible-modules-core/pull/1031
|
|
||||||
- name: Waiting for bootstrap container to exit
|
|
||||||
command: docker wait bootstrap_murano
|
|
||||||
run_once: True
|
|
||||||
delegate_to: "{{ groups['murano-api'][0] }}"
|
|
||||||
when: database_created
|
|
||||||
|
|
||||||
- name: Cleaning up Murano boostrap container
|
|
||||||
docker:
|
|
||||||
name: bootstrap_murano
|
|
||||||
image: "{{ murano_api_image_full }}"
|
image: "{{ murano_api_image_full }}"
|
||||||
state: absent
|
name: "bootstrap_murano"
|
||||||
|
restart_policy: "never"
|
||||||
|
volumes: "{{ node_config_directory }}/murano-api/:{{ container_config_directory }}/:ro"
|
||||||
|
run_once: True
|
||||||
delegate_to: "{{ groups['murano-api'][0] }}"
|
delegate_to: "{{ groups['murano-api'][0] }}"
|
||||||
when: database_created
|
when: database_created
|
||||||
|
@ -1,43 +1,22 @@
|
|||||||
---
|
---
|
||||||
- name: Starting Murano-engine container
|
- name: Starting murano-engine 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: murano_engine
|
|
||||||
image: "{{ murano_engine_image_full }}"
|
image: "{{ murano_engine_image_full }}"
|
||||||
|
name: "murano_engine"
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ node_config_directory }}/murano-engine/:{{ container_config_directory }}/:ro"
|
- "{{ node_config_directory }}/murano-engine/:{{ container_config_directory }}/:ro"
|
||||||
- "/var/lib/kolla/dev/log:/dev/log"
|
- "/var/lib/kolla/dev/log:/dev/log"
|
||||||
volumes_from:
|
|
||||||
env:
|
|
||||||
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
|
||||||
when: inventory_hostname in groups['murano-engine']
|
when: inventory_hostname in groups['murano-engine']
|
||||||
|
|
||||||
- name: Starting Murano-api container
|
- name: Starting murano-api 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: murano_api
|
|
||||||
image: "{{ murano_api_image_full }}"
|
image: "{{ murano_api_image_full }}"
|
||||||
|
name: "murano_api"
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ node_config_directory }}/murano-api/:{{ container_config_directory }}/:ro"
|
- "{{ node_config_directory }}/murano-api/:{{ container_config_directory }}/:ro"
|
||||||
- "/var/lib/kolla/dev/log:/dev/log"
|
- "/var/lib/kolla/dev/log:/dev/log"
|
||||||
env:
|
|
||||||
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
|
||||||
when: inventory_hostname in groups['murano-api']
|
when: inventory_hostname in groups['murano-api']
|
||||||
|
Loading…
Reference in New Issue
Block a user