Convert heat to kolla_docker
Change-Id: If8153a79d6e6784c757dfcca7f66b2e0c1416bd4 Partially-Implements: blueprint kolla-docker-module
This commit is contained in:
parent
34dac6a02c
commit
665d0c9d30
@ -35,22 +35,12 @@
|
|||||||
run_once: True
|
run_once: True
|
||||||
delegate_to: "{{ groups['heat-api'][0] }}"
|
delegate_to: "{{ groups['heat-api'][0] }}"
|
||||||
|
|
||||||
- name: Starting Heat bootstrap container
|
- name: Running Heat 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_heat
|
|
||||||
image: "{{ heat_api_image_full }}"
|
|
||||||
volumes: "{{ node_config_directory }}/heat-api/:{{ container_config_directory }}/:ro"
|
|
||||||
env:
|
|
||||||
KOLLA_BOOTSTRAP:
|
KOLLA_BOOTSTRAP:
|
||||||
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
||||||
OS_AUTH_URL: "{{ openstack_auth.auth_url }}"
|
OS_AUTH_URL: "{{ openstack_auth.auth_url }}"
|
||||||
@ -59,23 +49,9 @@
|
|||||||
OS_PASSWORD: "{{ openstack_auth.password }}"
|
OS_PASSWORD: "{{ openstack_auth.password }}"
|
||||||
OS_PROJECT_NAME: "{{ openstack_auth.project_name }}"
|
OS_PROJECT_NAME: "{{ openstack_auth.project_name }}"
|
||||||
HEAT_DOMAIN_ADMIN_PASSWORD: "{{ heat_domain_admin_password }}"
|
HEAT_DOMAIN_ADMIN_PASSWORD: "{{ heat_domain_admin_password }}"
|
||||||
run_once: True
|
|
||||||
delegate_to: "{{ groups['heat-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_heat
|
|
||||||
register: bootstrap_result
|
|
||||||
run_once: True
|
|
||||||
failed_when: bootstrap_result.stdout != "0"
|
|
||||||
delegate_to: "{{ groups['heat-api'][0] }}"
|
|
||||||
when: database_created
|
|
||||||
|
|
||||||
- name: Cleaning up Heat boostrap container
|
|
||||||
docker:
|
|
||||||
name: bootstrap_heat
|
|
||||||
image: "{{ heat_api_image_full }}"
|
image: "{{ heat_api_image_full }}"
|
||||||
state: absent
|
name: "bootstrap_heat"
|
||||||
|
volumes: "{{ node_config_directory }}/heat-api/:{{ container_config_directory }}/:ro"
|
||||||
|
run_once: True
|
||||||
delegate_to: "{{ groups['heat-api'][0] }}"
|
delegate_to: "{{ groups['heat-api'][0] }}"
|
||||||
when: database_created
|
when: database_created
|
||||||
|
@ -1,63 +1,33 @@
|
|||||||
---
|
---
|
||||||
- name: Starting heat-api container
|
- name: Starting heat-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: heat_api
|
|
||||||
image: "{{ heat_api_image_full }}"
|
image: "{{ heat_api_image_full }}"
|
||||||
|
name: "heat_api"
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ node_config_directory }}/heat-api/:{{ container_config_directory }}/:ro"
|
- "{{ node_config_directory }}/heat-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['heat-api']
|
when: inventory_hostname in groups['heat-api']
|
||||||
|
|
||||||
- name: Starting heat-api-cfn container
|
- name: Starting heat-api-cfn 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: heat_api_cfn
|
|
||||||
image: "{{ heat_api_cfn_image_full }}"
|
image: "{{ heat_api_cfn_image_full }}"
|
||||||
|
name: "heat_api_cfn"
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ node_config_directory }}/heat-api-cfn/:{{ container_config_directory }}/:ro"
|
- "{{ node_config_directory }}/heat-api-cfn/:{{ 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['heat-api-cfn']
|
when: inventory_hostname in groups['heat-api-cfn']
|
||||||
|
|
||||||
- name: Starting heat-engine container
|
- name: Starting heat-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: heat_engine
|
|
||||||
image: "{{ heat_engine_image_full }}"
|
image: "{{ heat_engine_image_full }}"
|
||||||
|
name: "heat_engine"
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ node_config_directory }}/heat-engine/:{{ container_config_directory }}/:ro"
|
- "{{ node_config_directory }}/heat-engine/:{{ 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['heat-engine']
|
when: inventory_hostname in groups['heat-engine']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user