Specify 'become' for all tasks that use kolla_docker module
Add become to all tasks that use the module "kolla_docker" Change-Id: I4309c4011687b88ec31d739fd8f834fe2326ff10 Partial-Implements: blueprint ansible-specific-task-become
This commit is contained in:
parent
31a6de01f3
commit
30be04ea91
@ -7,6 +7,7 @@
|
|||||||
aodh_conf: "{{ aodh_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
aodh_conf: "{{ aodh_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ aodh_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ aodh_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
aodh_api_container: "{{ check_aodh_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
aodh_api_container: "{{ check_aodh_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -31,6 +32,7 @@
|
|||||||
aodh_conf: "{{ aodh_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
aodh_conf: "{{ aodh_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ aodh_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ aodh_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
aodh_evaluator_container: "{{ check_aodh_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
aodh_evaluator_container: "{{ check_aodh_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -54,6 +56,7 @@
|
|||||||
aodh_conf: "{{ aodh_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
aodh_conf: "{{ aodh_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ aodh_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ aodh_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
aodh_listener_container: "{{ check_aodh_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
aodh_listener_container: "{{ check_aodh_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -77,6 +80,7 @@
|
|||||||
aodh_conf: "{{ aodh_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
aodh_conf: "{{ aodh_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ aodh_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ aodh_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
aodh_notifier_container: "{{ check_aodh_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
aodh_notifier_container: "{{ check_aodh_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Running aodh bootstrap container
|
- name: Running aodh bootstrap container
|
||||||
vars:
|
vars:
|
||||||
aodh_api: "{{ aodh_services['aodh-api'] }}"
|
aodh_api: "{{ aodh_services['aodh-api'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -104,6 +104,7 @@
|
|||||||
- Restart aodh-api container
|
- Restart aodh-api container
|
||||||
|
|
||||||
- name: Check aodh containers
|
- name: Check aodh containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling aodh images
|
- name: Pulling aodh images
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
barbican_conf: "{{ barbican_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
barbican_conf: "{{ barbican_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ barbican_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ barbican_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
barbican_api_container: "{{ check_barbican_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
barbican_api_container: "{{ check_barbican_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -32,6 +33,7 @@
|
|||||||
barbican_conf: "{{ barbican_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
barbican_conf: "{{ barbican_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ barbican_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ barbican_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
barbican_keystone_listener_container: "{{ check_barbican_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
barbican_keystone_listener_container: "{{ check_barbican_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -55,6 +57,7 @@
|
|||||||
barbican_conf: "{{ barbican_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
barbican_conf: "{{ barbican_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ barbican_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ barbican_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
barbican_worker_container: "{{ check_barbican_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
barbican_worker_container: "{{ check_barbican_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Running barbican bootstrap container
|
- name: Running barbican bootstrap container
|
||||||
vars:
|
vars:
|
||||||
barbican_api: "{{ barbican_services['barbican-api'] }}"
|
barbican_api: "{{ barbican_services['barbican-api'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -123,6 +123,7 @@
|
|||||||
- Restart {{ item.key }} container
|
- Restart {{ item.key }} container
|
||||||
|
|
||||||
- name: Check barbican containers
|
- name: Check barbican containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling barbican images
|
- name: Pulling barbican images
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Ensuring the containers up
|
- name: Ensuring the containers up
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
action: "get_container_state"
|
action: "get_container_state"
|
||||||
@ -24,6 +25,7 @@
|
|||||||
# and container env['KOLLA_CONFIG_STRATEGY'] == 'COPY_ONCE',
|
# and container env['KOLLA_CONFIG_STRATEGY'] == 'COPY_ONCE',
|
||||||
# just remove the container and start again
|
# just remove the container and start again
|
||||||
- name: Containers config strategy
|
- name: Containers config strategy
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
action: "get_container_env"
|
action: "get_container_env"
|
||||||
@ -33,6 +35,7 @@
|
|||||||
- { name: bifrost-deploy, group: bifrost-deploy }
|
- { name: bifrost-deploy, group: bifrost-deploy }
|
||||||
|
|
||||||
- name: Remove the containers
|
- name: Remove the containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
name: "{{ item[0]['name'] }}"
|
name: "{{ item[0]['name'] }}"
|
||||||
action: "remove_container"
|
action: "remove_container"
|
||||||
@ -50,6 +53,7 @@
|
|||||||
when: remove_containers.changed
|
when: remove_containers.changed
|
||||||
|
|
||||||
- name: Restart containers
|
- name: Restart containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
name: "{{ item[0]['name'] }}"
|
name: "{{ item[0]['name'] }}"
|
||||||
action: "restart_container"
|
action: "restart_container"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Starting bifrost deploy container
|
- name: Starting bifrost deploy container
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
blazar_conf: "{{ blazar_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
blazar_conf: "{{ blazar_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ blazar_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ blazar_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
blazar_api_container: "{{ check_blazar_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
blazar_api_container: "{{ check_blazar_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -30,6 +31,7 @@
|
|||||||
blazar_conf: "{{ blazar_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
blazar_conf: "{{ blazar_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ blazar_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ blazar_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
blazar_manager_container: "{{ check_blazar_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
blazar_manager_container: "{{ check_blazar_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Running blazar bootstrap container
|
- name: Running blazar bootstrap container
|
||||||
vars:
|
vars:
|
||||||
blazar_api: "{{ blazar_services['blazar-api'] }}"
|
blazar_api: "{{ blazar_services['blazar-api'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -82,6 +82,7 @@
|
|||||||
- Restart blazar-manager container
|
- Restart blazar-manager container
|
||||||
|
|
||||||
- name: Check blazar containers
|
- name: Check blazar containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling blazar images
|
- name: Pulling blazar images
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
policy_overwriting: "{{ ceilometer_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ ceilometer_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
ceilometer_notification_container: "{{ check_ceilometer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
ceilometer_notification_container: "{{ check_ceilometer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
panko_conf: "{{ panko_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
panko_conf: "{{ panko_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -36,6 +37,7 @@
|
|||||||
ceilometer_pipeline: "{{ ceilometer_pipelines.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
ceilometer_pipeline: "{{ ceilometer_pipelines.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ ceilometer_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ ceilometer_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
ceilometer_central_container: "{{ check_ceilometer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
ceilometer_central_container: "{{ check_ceilometer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -61,6 +63,7 @@
|
|||||||
ceilometer_pipeline: "{{ ceilometer_pipelines.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
ceilometer_pipeline: "{{ ceilometer_pipelines.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ ceilometer_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ ceilometer_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
ceilometer_compute_container: "{{ check_ceilometer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
ceilometer_compute_container: "{{ check_ceilometer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Running Ceilometer bootstrap container
|
- name: Running Ceilometer bootstrap container
|
||||||
vars:
|
vars:
|
||||||
ceilometer_notification: "{{ ceilometer_services['ceilometer-notification'] }}"
|
ceilometer_notification: "{{ ceilometer_services['ceilometer-notification'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -162,6 +162,7 @@
|
|||||||
|
|
||||||
# check whether the containers parameter is changed. If yes, trigger the handler.
|
# check whether the containers parameter is changed. If yes, trigger the handler.
|
||||||
- name: Check ceilometer containers
|
- name: Check ceilometer containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling ceilometer images
|
- name: Pulling ceilometer images
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
run_once: True
|
run_once: True
|
||||||
|
|
||||||
- name: Creating ceph_mon_config volume
|
- name: Creating ceph_mon_config volume
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "create_volume"
|
action: "create_volume"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
- ceph_osd_wipe_disk != "yes-i-really-really-mean-it"
|
- ceph_osd_wipe_disk != "yes-i-really-really-mean-it"
|
||||||
|
|
||||||
- name: Bootstrapping Ceph OSDs
|
- name: Bootstrapping Ceph OSDs
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -86,6 +87,7 @@
|
|||||||
- ceph_osd_wipe_disk != "yes-i-really-really-mean-it"
|
- ceph_osd_wipe_disk != "yes-i-really-really-mean-it"
|
||||||
|
|
||||||
- name: Bootstrapping Ceph Cache OSDs
|
- name: Bootstrapping Ceph Cache OSDs
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Generating initial Ceph keyrings and monmap
|
- name: Generating initial Ceph keyrings and monmap
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling ceph-mon image
|
- name: Pulling ceph-mon image
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -7,6 +8,7 @@
|
|||||||
when: inventory_hostname in groups['ceph-mon']
|
when: inventory_hostname in groups['ceph-mon']
|
||||||
|
|
||||||
- name: Pulling ceph-osd image
|
- name: Pulling ceph-osd image
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -14,6 +16,7 @@
|
|||||||
when: inventory_hostname in groups['ceph-osd']
|
when: inventory_hostname in groups['ceph-osd']
|
||||||
|
|
||||||
- name: Pulling ceph-rgw image
|
- name: Pulling ceph-rgw image
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -21,6 +24,7 @@
|
|||||||
when: inventory_hostname in groups['ceph-rgw']
|
when: inventory_hostname in groups['ceph-rgw']
|
||||||
|
|
||||||
- name: Pulling ceph-mgr image
|
- name: Pulling ceph-mgr image
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -29,6 +33,7 @@
|
|||||||
- inventory_hostname in groups['ceph-mgr']
|
- inventory_hostname in groups['ceph-mgr']
|
||||||
|
|
||||||
- name: Pulling ceph-mds image
|
- name: Pulling ceph-mds image
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -38,6 +43,7 @@
|
|||||||
- inventory_hostname in groups['ceph-mds']
|
- inventory_hostname in groups['ceph-mds']
|
||||||
|
|
||||||
- name: Pulling ceph-nfs image
|
- name: Pulling ceph-nfs image
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Ensuring the ceph_mon container is up
|
- name: Ensuring the ceph_mon container is up
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
action: "get_container_state"
|
action: "get_container_state"
|
||||||
@ -32,6 +33,7 @@
|
|||||||
when: inventory_hostname in groups['ceph-osd']
|
when: inventory_hostname in groups['ceph-osd']
|
||||||
|
|
||||||
- name: Ensuring the ceph_osd container is up
|
- name: Ensuring the ceph_osd container is up
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
name: "ceph_osd_{{ item.stdout }}"
|
name: "ceph_osd_{{ item.stdout }}"
|
||||||
action: "get_container_state"
|
action: "get_container_state"
|
||||||
@ -41,6 +43,7 @@
|
|||||||
with_items: "{{ osd_ids.results|default({}) }}"
|
with_items: "{{ osd_ids.results|default({}) }}"
|
||||||
|
|
||||||
- name: Ensuring the ceph_rgw container is up
|
- name: Ensuring the ceph_rgw container is up
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
action: "get_container_state"
|
action: "get_container_state"
|
||||||
@ -83,6 +86,7 @@
|
|||||||
- { name: ceph_rgw, group: ceph-rgw }
|
- { name: ceph_rgw, group: ceph-rgw }
|
||||||
|
|
||||||
- name: Containers config strategy for ceph_mon container
|
- name: Containers config strategy for ceph_mon container
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
action: "get_container_env"
|
action: "get_container_env"
|
||||||
@ -92,6 +96,7 @@
|
|||||||
- { name: ceph_mon, group: ceph-mon }
|
- { name: ceph_mon, group: ceph-mon }
|
||||||
|
|
||||||
- name: Containers config strategy for the ceph_osd containers
|
- name: Containers config strategy for the ceph_osd containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
name: "ceph_osd_{{ item.stdout }}"
|
name: "ceph_osd_{{ item.stdout }}"
|
||||||
action: "get_container_env"
|
action: "get_container_env"
|
||||||
@ -102,6 +107,7 @@
|
|||||||
- osds
|
- osds
|
||||||
|
|
||||||
- name: Containers config strategy for ceph_rgw container
|
- name: Containers config strategy for ceph_rgw container
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
action: "get_container_env"
|
action: "get_container_env"
|
||||||
@ -113,6 +119,7 @@
|
|||||||
- { name: ceph_rgw, group: ceph-rgw }
|
- { name: ceph_rgw, group: ceph-rgw }
|
||||||
|
|
||||||
- name: Remove the ceph_mon container
|
- name: Remove the ceph_mon container
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
name: "{{ item[0]['name'] }}"
|
name: "{{ item[0]['name'] }}"
|
||||||
action: "remove_container"
|
action: "remove_container"
|
||||||
@ -127,6 +134,7 @@
|
|||||||
- "{{ ceph_mon_check_results.results }}"
|
- "{{ ceph_mon_check_results.results }}"
|
||||||
|
|
||||||
- name: Remove the ceph_osd containers
|
- name: Remove the ceph_osd containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
name: "ceph_osd_{{ item.0.stdout }}"
|
name: "ceph_osd_{{ item.0.stdout }}"
|
||||||
action: "remove_container"
|
action: "remove_container"
|
||||||
@ -142,6 +150,7 @@
|
|||||||
- "{{ ceph_osd_check_results.results }}"
|
- "{{ ceph_osd_check_results.results }}"
|
||||||
|
|
||||||
- name: Remove the ceph_rgw container
|
- name: Remove the ceph_rgw container
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
name: "{{ item[0]['name'] }}"
|
name: "{{ item[0]['name'] }}"
|
||||||
action: "remove_container"
|
action: "remove_container"
|
||||||
@ -172,6 +181,7 @@
|
|||||||
- remove_ceph_rgw_container.changed
|
- remove_ceph_rgw_container.changed
|
||||||
|
|
||||||
- name: Restart the ceph_mon container
|
- name: Restart the ceph_mon container
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
name: "ceph_mon"
|
name: "ceph_mon"
|
||||||
action: "restart_container"
|
action: "restart_container"
|
||||||
@ -185,6 +195,7 @@
|
|||||||
- "{{ ceph_mon_check_results.results }}"
|
- "{{ ceph_mon_check_results.results }}"
|
||||||
|
|
||||||
- name: Restart the ceph_osd container
|
- name: Restart the ceph_osd container
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
name: "ceph_osd_{{ item.0.stdout }}"
|
name: "ceph_osd_{{ item.0.stdout }}"
|
||||||
action: "restart_container"
|
action: "restart_container"
|
||||||
@ -200,6 +211,7 @@
|
|||||||
- "{{ ceph_osd_check_results.results }}"
|
- "{{ ceph_osd_check_results.results }}"
|
||||||
|
|
||||||
- name: Restart the ceph_rgw container
|
- name: Restart the ceph_rgw container
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
name: "ceph_rgw"
|
name: "ceph_rgw"
|
||||||
action: "restart_container"
|
action: "restart_container"
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
with_items: "{{ ceph_mds_auth.results }}"
|
with_items: "{{ ceph_mds_auth.results }}"
|
||||||
|
|
||||||
- name: Starting ceph-mds container
|
- name: Starting ceph-mds container
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
with_items: "{{ ceph_mgr_keyring.results }}"
|
with_items: "{{ ceph_mgr_keyring.results }}"
|
||||||
|
|
||||||
- name: Starting ceph-mgr container
|
- name: Starting ceph-mgr container
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Starting ceph-mon container
|
- name: Starting ceph-mon container
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Starting ceph-nfs container
|
- name: Starting ceph-nfs container
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
failed_when: id.rc != 0
|
failed_when: id.rc != 0
|
||||||
|
|
||||||
- name: Starting ceph-osd container
|
- name: Starting ceph-osd container
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Starting ceph-rgw container
|
- name: Starting ceph-rgw container
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
vars:
|
vars:
|
||||||
service_name: "chrony"
|
service_name: "chrony"
|
||||||
service: "{{ chrony_services[service_name] }}"
|
service: "{{ chrony_services[service_name] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
- Restart chrony container
|
- Restart chrony container
|
||||||
|
|
||||||
- name: Check chrony container
|
- name: Check chrony container
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling chrony images
|
- name: Pulling chrony images
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
cinder_conf: "{{ cinder_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
cinder_conf: "{{ cinder_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ cinder_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ cinder_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
cinder_api_container: "{{ check_cinder_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
cinder_api_container: "{{ check_cinder_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -31,6 +32,7 @@
|
|||||||
cinder_conf: "{{ cinder_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
cinder_conf: "{{ cinder_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ cinder_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ cinder_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
cinder_scheduler_container: "{{ check_cinder_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
cinder_scheduler_container: "{{ check_cinder_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -54,6 +56,7 @@
|
|||||||
cinder_conf: "{{ cinder_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
cinder_conf: "{{ cinder_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ cinder_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ cinder_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
cinder_volume_container: "{{ check_cinder_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
cinder_volume_container: "{{ check_cinder_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -79,6 +82,7 @@
|
|||||||
cinder_conf: "{{ cinder_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
cinder_conf: "{{ cinder_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ cinder_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ cinder_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
cinder_backup_container: "{{ check_cinder_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
cinder_backup_container: "{{ check_cinder_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Running Cinder bootstrap container
|
- name: Running Cinder bootstrap container
|
||||||
vars:
|
vars:
|
||||||
cinder_api: "{{ cinder_services['cinder-api'] }}"
|
cinder_api: "{{ cinder_services['cinder-api'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -120,6 +120,7 @@
|
|||||||
when: inventory_hostname in groups['cinder-volume']
|
when: inventory_hostname in groups['cinder-volume']
|
||||||
|
|
||||||
- name: Check cinder containers
|
- name: Check cinder containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling cinder images
|
- name: Pulling cinder images
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
- name: Running Cinder online schema migration
|
- name: Running Cinder online schema migration
|
||||||
vars:
|
vars:
|
||||||
cinder_api: "{{ cinder_services['cinder-api'] }}"
|
cinder_api: "{{ cinder_services['cinder-api'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
cloudkitty_conf: "{{ cloudkitty_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
cloudkitty_conf: "{{ cloudkitty_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ cloudkitty_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ cloudkitty_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
cloudkitty_api_container: "{{ check_cloudkitty_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
cloudkitty_api_container: "{{ check_cloudkitty_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -31,6 +32,7 @@
|
|||||||
cloudkitty_conf: "{{ cloudkitty_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
cloudkitty_conf: "{{ cloudkitty_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ cloudkitty_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ cloudkitty_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
cloudkitty_processor_container: "{{ check_cloudkitty_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
cloudkitty_processor_container: "{{ check_cloudkitty_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Running Cloudkitty bootstrap container
|
- name: Running Cloudkitty bootstrap container
|
||||||
vars:
|
vars:
|
||||||
cloudkitty_api: "{{ cloudkitty_services['cloudkitty-api'] }}"
|
cloudkitty_api: "{{ cloudkitty_services['cloudkitty-api'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -98,6 +98,7 @@
|
|||||||
- Restart cloudkitty-processor container
|
- Restart cloudkitty-processor container
|
||||||
|
|
||||||
- name: Check cloudkitty containers
|
- name: Check cloudkitty containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling cloudkitty images
|
- name: Pulling cloudkitty images
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
service: "{{ collectd_services[service_name] }}"
|
service: "{{ collectd_services[service_name] }}"
|
||||||
config_json: "{{ collectd_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
config_json: "{{ collectd_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
collectd_container: "{{ check_collectd_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
collectd_container: "{{ check_collectd_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -60,6 +60,7 @@
|
|||||||
- Restart collectd container
|
- Restart collectd container
|
||||||
|
|
||||||
- name: Check collectd containers
|
- name: Check collectd containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling collectd image
|
- name: Pulling collectd image
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
service: "{{ common_services[service_name] }}"
|
service: "{{ common_services[service_name] }}"
|
||||||
config_json: "{{ common_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
config_json: "{{ common_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
fluentd_container: "{{ check_common_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
fluentd_container: "{{ check_common_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -31,6 +32,7 @@
|
|||||||
service: "{{ common_services[service_name] }}"
|
service: "{{ common_services[service_name] }}"
|
||||||
config_json: "{{ common_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
config_json: "{{ common_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
kolla_toolbox_container: "{{ check_common_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
kolla_toolbox_container: "{{ check_common_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -57,6 +59,7 @@
|
|||||||
service: "{{ common_services[service_name] }}"
|
service: "{{ common_services[service_name] }}"
|
||||||
config_json: "{{ common_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
config_json: "{{ common_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
cron_container: "{{ check_common_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
cron_container: "{{ check_common_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Creating log volume
|
- name: Creating log volume
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "create_volume"
|
action: "create_volume"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -247,6 +247,7 @@
|
|||||||
with_dict: "{{ common_services }}"
|
with_dict: "{{ common_services }}"
|
||||||
|
|
||||||
- name: Check common containers
|
- name: Check common containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling common images
|
- name: Pulling common images
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
congress_conf: "{{ congress_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
congress_conf: "{{ congress_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ congress_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ congress_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
congress_api_container: "{{ check_congress_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
congress_api_container: "{{ check_congress_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -30,6 +31,7 @@
|
|||||||
congress_conf: "{{ congress_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
congress_conf: "{{ congress_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ congress_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ congress_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
congress_policy_engin_container: "{{ check_congress_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
congress_policy_engin_container: "{{ check_congress_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -53,6 +55,7 @@
|
|||||||
congress_conf: "{{ congress_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
congress_conf: "{{ congress_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ congress_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ congress_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
congress_datasource_container: "{{ check_congress_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
congress_datasource_container: "{{ check_congress_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Running congress bootstrap container
|
- name: Running congress bootstrap container
|
||||||
vars:
|
vars:
|
||||||
congress_api: "{{ congress_services['congress-api'] }}"
|
congress_api: "{{ congress_services['congress-api'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -78,6 +78,7 @@
|
|||||||
- "Restart {{ item.key }} container"
|
- "Restart {{ item.key }} container"
|
||||||
|
|
||||||
- name: Check congress containers
|
- name: Check congress containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling congress images
|
- name: Pulling congress images
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
service: "{{ designate_services[service_name] }}"
|
service: "{{ designate_services[service_name] }}"
|
||||||
config_json: "{{ designate_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
config_json: "{{ designate_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
designate_backend_bind9_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
designate_backend_bind9_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -29,6 +30,7 @@
|
|||||||
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
designate_api_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
designate_api_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -52,6 +54,7 @@
|
|||||||
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
designate_central_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
designate_central_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -75,6 +78,7 @@
|
|||||||
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
designate_producer_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
designate_producer_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -98,6 +102,7 @@
|
|||||||
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
designate_mdns_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
designate_mdns_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -121,6 +126,7 @@
|
|||||||
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
designate_worker_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
designate_worker_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -146,6 +152,7 @@
|
|||||||
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
designate_sink_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
designate_sink_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Running Designate bootstrap container
|
- name: Running Designate bootstrap container
|
||||||
vars:
|
vars:
|
||||||
designate_central: "{{ designate_services['designate-central'] }}"
|
designate_central: "{{ designate_services['designate-central'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -177,6 +177,7 @@
|
|||||||
- Restart designate-worker container
|
- Restart designate-worker container
|
||||||
|
|
||||||
- name: Check designate containers
|
- name: Check designate containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling designate images
|
- name: Pulling designate images
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
config_json: "{{ elasticsearch_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
config_json: "{{ elasticsearch_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
elasticsearch_conf: "{{ elasticsearch_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
elasticsearch_conf: "{{ elasticsearch_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
elasticsearch_container: "{{ check_elasticsearch_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
elasticsearch_container: "{{ check_elasticsearch_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -50,6 +50,7 @@
|
|||||||
- Restart elasticsearch container
|
- Restart elasticsearch container
|
||||||
|
|
||||||
- name: Check elasticsearch containers
|
- name: Check elasticsearch containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling elasticsearch image
|
- name: Pulling elasticsearch image
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
service: "{{ etcd_services[service_name] }}"
|
service: "{{ etcd_services[service_name] }}"
|
||||||
config_json: "{{ etcd_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
config_json: "{{ etcd_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
etcd_container: "{{ check_etcd_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
etcd_container: "{{ check_etcd_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
- Restart etcd container
|
- Restart etcd container
|
||||||
|
|
||||||
- name: Check etcd containers
|
- name: Check etcd containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling etcd image
|
- name: Pulling etcd image
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
freezer_conf: "{{ freezer_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
freezer_conf: "{{ freezer_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ freezer_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ freezer_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
freezer_api_container: "{{ check_freezer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
freezer_api_container: "{{ check_freezer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -31,6 +32,7 @@
|
|||||||
freezer_conf: "{{ freezer_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
freezer_conf: "{{ freezer_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ freezer_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ freezer_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
freezer_scheduler_container: "{{ check_freezer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
freezer_scheduler_container: "{{ check_freezer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Running Freezer bootstrap container
|
- name: Running Freezer bootstrap container
|
||||||
vars:
|
vars:
|
||||||
freezer_api: "{{ freezer_services['freezer-api'] }}"
|
freezer_api: "{{ freezer_services['freezer-api'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -95,6 +95,7 @@
|
|||||||
- "Restart {{ item.key }} container"
|
- "Restart {{ item.key }} container"
|
||||||
|
|
||||||
- name: Check freezer containers
|
- name: Check freezer containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling freezer images
|
- name: Pulling freezer images
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
glance_conf: "{{ glance_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
glance_conf: "{{ glance_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ glance_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ glance_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
glance_api_container: "{{ check_glance_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
glance_api_container: "{{ check_glance_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -32,6 +33,7 @@
|
|||||||
glance_conf: "{{ glance_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
glance_conf: "{{ glance_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ glance_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ glance_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
glance_registry_container: "{{ check_glance_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
glance_registry_container: "{{ check_glance_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
- name: Running Glance bootstrap container
|
- name: Running Glance bootstrap container
|
||||||
vars:
|
vars:
|
||||||
glance_api: "{{ glance_services['glance-api'] }}"
|
glance_api: "{{ glance_services['glance-api'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -112,6 +112,7 @@
|
|||||||
- Restart glance-registry container
|
- Restart glance-registry container
|
||||||
|
|
||||||
- name: Check glance containers
|
- name: Check glance containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling glance images
|
- name: Pulling glance images
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
- name: Running Glance database expand container
|
- name: Running Glance database expand container
|
||||||
vars:
|
vars:
|
||||||
glance_api: "{{ glance_services['glance-api'] }}"
|
glance_api: "{{ glance_services['glance-api'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -52,6 +53,7 @@
|
|||||||
- name: Running Glance database migrate container
|
- name: Running Glance database migrate container
|
||||||
vars:
|
vars:
|
||||||
glance_api: "{{ glance_services['glance-api'] }}"
|
glance_api: "{{ glance_services['glance-api'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -84,6 +86,7 @@
|
|||||||
- name: Running Glance database contract container
|
- name: Running Glance database contract container
|
||||||
vars:
|
vars:
|
||||||
glance_api: "{{ glance_services['glance-api'] }}"
|
glance_api: "{{ glance_services['glance-api'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Stop glance service
|
- name: Stop glance service
|
||||||
vars:
|
vars:
|
||||||
glance_api: "{{ glance_services['glance-api'] }}"
|
glance_api: "{{ glance_services['glance-api'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "stop_container"
|
action: "stop_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
gnocchi_conf: "{{ gnocchi_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
gnocchi_conf: "{{ gnocchi_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ gnocchi_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ gnocchi_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
gnocchi_api_container: "{{ check_gnocchi_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
gnocchi_api_container: "{{ check_gnocchi_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -31,6 +32,7 @@
|
|||||||
gnocchi_conf: "{{ gnocchi_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
gnocchi_conf: "{{ gnocchi_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ gnocchi_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ gnocchi_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
gnocchi_metricd_container: "{{ check_gnocchi_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
gnocchi_metricd_container: "{{ check_gnocchi_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -54,6 +56,7 @@
|
|||||||
gnocchi_conf: "{{ gnocchi_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
gnocchi_conf: "{{ gnocchi_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ gnocchi_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ gnocchi_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
gnocchi_statsd_container: "{{ check_gnocchi_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
gnocchi_statsd_container: "{{ check_gnocchi_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Running gnocchi bootstrap container
|
- name: Running gnocchi bootstrap container
|
||||||
vars:
|
vars:
|
||||||
gnocchi_api: "{{ gnocchi_services['gnocchi-api'] }}"
|
gnocchi_api: "{{ gnocchi_services['gnocchi-api'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -101,6 +101,7 @@
|
|||||||
- Restart gnocchi-statsd container
|
- Restart gnocchi-statsd container
|
||||||
|
|
||||||
- name: Check gnocchi containers
|
- name: Check gnocchi containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling gnocchi images
|
- name: Pulling gnocchi images
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
config_json: "{{ grafana_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
config_json: "{{ grafana_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
grafana_conf: "{{ grafana_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
grafana_conf: "{{ grafana_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
grafana_container: "{{ check_grafana_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
grafana_container: "{{ check_grafana_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -99,6 +99,7 @@
|
|||||||
- Restart grafana container
|
- Restart grafana container
|
||||||
|
|
||||||
- name: Check grafana containers
|
- name: Check grafana containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling grafana image
|
- name: Pulling grafana image
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
service: "{{ haproxy_services[service_name] }}"
|
service: "{{ haproxy_services[service_name] }}"
|
||||||
config_json: "{{ haproxy_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
config_json: "{{ haproxy_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
haproxy_container: "{{ check_haproxy_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
haproxy_container: "{{ check_haproxy_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -29,6 +30,7 @@
|
|||||||
service: "{{ haproxy_services[service_name] }}"
|
service: "{{ haproxy_services[service_name] }}"
|
||||||
config_json: "{{ haproxy_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
config_json: "{{ haproxy_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
keepalived_container: "{{ check_haproxy_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
keepalived_container: "{{ check_haproxy_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -94,6 +94,7 @@
|
|||||||
- Ensuring latest haproxy config is used
|
- Ensuring latest haproxy config is used
|
||||||
|
|
||||||
- name: Check haproxy containers
|
- name: Check haproxy containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling haproxy images
|
- name: Pulling haproxy images
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
- set_fact: secondary_addresses={{ hostvars[inventory_hostname]['ansible_' + api_interface].get('ipv4_secondaries', []) | map(attribute='address') | list }}
|
- set_fact: secondary_addresses={{ hostvars[inventory_hostname]['ansible_' + api_interface].get('ipv4_secondaries', []) | map(attribute='address') | list }}
|
||||||
|
|
||||||
- name: Stopping all slave keepalived containers
|
- name: Stopping all slave keepalived containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "stop_container"
|
action: "stop_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
heat_conf: "{{ heat_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
heat_conf: "{{ heat_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ heat_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ heat_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
heat_api_container: "{{ check_heat_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
heat_api_container: "{{ check_heat_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -30,6 +31,7 @@
|
|||||||
heat_conf: "{{ heat_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
heat_conf: "{{ heat_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ heat_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ heat_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
heat_api_cfn_container: "{{ check_heat_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
heat_api_cfn_container: "{{ check_heat_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -53,6 +55,7 @@
|
|||||||
heat_conf: "{{ heat_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
heat_conf: "{{ heat_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_overwriting: "{{ heat_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_overwriting: "{{ heat_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
heat_engine_container: "{{ check_heat_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
heat_engine_container: "{{ check_heat_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Running Heat bootstrap container
|
- name: Running Heat bootstrap container
|
||||||
vars:
|
vars:
|
||||||
heat_api: "{{ heat_services['heat-api'] }}"
|
heat_api: "{{ heat_services['heat-api'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -95,6 +95,7 @@
|
|||||||
- Restart heat-engine container
|
- Restart heat-engine container
|
||||||
|
|
||||||
- name: Check heat containers
|
- name: Check heat containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling heat images
|
- name: Pulling heat images
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
vars:
|
vars:
|
||||||
service_name: "horizon"
|
service_name: "horizon"
|
||||||
service: "{{ horizon_services[service_name] }}"
|
service: "{{ horizon_services[service_name] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Running Horizon bootstrap container
|
- name: Running Horizon bootstrap container
|
||||||
vars:
|
vars:
|
||||||
horizon: "{{ horizon_services['horizon'] }}"
|
horizon: "{{ horizon_services['horizon'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -136,6 +136,7 @@
|
|||||||
- name: Check horizon container
|
- name: Check horizon container
|
||||||
vars:
|
vars:
|
||||||
horizon: "{{ horizon_services['horizon'] }}"
|
horizon: "{{ horizon_services['horizon'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling horizon images
|
- name: Pulling horizon images
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
service: "{{ influxdb_services[service_name] }}"
|
service: "{{ influxdb_services[service_name] }}"
|
||||||
config_json: "{{ influxdb_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
config_json: "{{ influxdb_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
influxdb_container: "{{ check_influxdb_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
influxdb_container: "{{ check_influxdb_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
- Restart influxdb container
|
- Restart influxdb container
|
||||||
|
|
||||||
- name: Check influxdb containers
|
- name: Check influxdb containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling influxdb image
|
- name: Pulling influxdb image
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
ironic_conf: "{{ ironic_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
ironic_conf: "{{ ironic_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_json: "{{ ironic_policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_json: "{{ ironic_policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
ironic_api_container: "{{ check_ironic_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
ironic_api_container: "{{ check_ironic_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -30,6 +31,7 @@
|
|||||||
ironic_conf: "{{ ironic_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
ironic_conf: "{{ ironic_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_json: "{{ ironic_policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_json: "{{ ironic_policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
ironic_conductor_container: "{{ check_ironic_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
ironic_conductor_container: "{{ check_ironic_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -53,6 +55,7 @@
|
|||||||
config_json: "{{ ironic_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
config_json: "{{ ironic_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
policy_json: "{{ ironic_policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
policy_json: "{{ ironic_policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
ironic_inspector_container: "{{ check_ironic_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
ironic_inspector_container: "{{ check_ironic_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -75,6 +78,7 @@
|
|||||||
service: "{{ ironic_services[service_name] }}"
|
service: "{{ ironic_services[service_name] }}"
|
||||||
config_json: "{{ ironic_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
config_json: "{{ ironic_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
ironic_pxe_container: "{{ check_ironic_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
ironic_pxe_container: "{{ check_ironic_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -119,6 +123,7 @@
|
|||||||
service: "{{ ironic_services[service_name] }}"
|
service: "{{ ironic_services[service_name] }}"
|
||||||
config_json: "{{ ironic_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
config_json: "{{ ironic_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
ironic_dnsmasq_container: "{{ check_ironic_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
ironic_dnsmasq_container: "{{ check_ironic_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "recreate_or_restart_container"
|
action: "recreate_or_restart_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -54,6 +54,7 @@
|
|||||||
- name: Running Ironic-PXE bootstrap container
|
- name: Running Ironic-PXE bootstrap container
|
||||||
vars:
|
vars:
|
||||||
ironic_pxe: "{{ ironic_services['ironic-pxe'] }}"
|
ironic_pxe: "{{ ironic_services['ironic-pxe'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
- name: Running Ironic bootstrap container
|
- name: Running Ironic bootstrap container
|
||||||
vars:
|
vars:
|
||||||
ironic_api: "{{ ironic_services['ironic-api'] }}"
|
ironic_api: "{{ ironic_services['ironic-api'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -22,6 +23,7 @@
|
|||||||
- name: Running Ironic Inspector bootstrap container
|
- name: Running Ironic Inspector bootstrap container
|
||||||
vars:
|
vars:
|
||||||
ironic_inspector: "{{ ironic_services['ironic-inspector'] }}"
|
ironic_inspector: "{{ ironic_services['ironic-inspector'] }}"
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "start_container"
|
action: "start_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -251,6 +251,7 @@
|
|||||||
- "Restart {{ item.key }} container"
|
- "Restart {{ item.key }} container"
|
||||||
|
|
||||||
- name: Check ironic containers
|
- name: Check ironic containers
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling ironic images
|
- name: Pulling ironic images
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Pulling iscsid image
|
- name: Pulling iscsid image
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
@ -7,6 +8,7 @@
|
|||||||
when: inventory_hostname in groups['iscsid']
|
when: inventory_hostname in groups['iscsid']
|
||||||
|
|
||||||
- name: Pulling tgtd image
|
- name: Pulling tgtd image
|
||||||
|
become: true
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user