Playbook for keystone upgrade
New playbook for keystone release upgrade. Co-Authored-By: SamYaple <sam@yaple.net> Change-Id: I387abb30e5ead0033430848164d250fce739d2fd Implements: blueprint upgrade-keystone Partially-Implements: blueprint upgrade-kolla
This commit is contained in:
committed by
SamYaple
parent
a87c2a6929
commit
26524c7475
@@ -37,18 +37,5 @@
|
|||||||
run_once: True
|
run_once: True
|
||||||
delegate_to: "{{ groups['keystone'][0] }}"
|
delegate_to: "{{ groups['keystone'][0] }}"
|
||||||
|
|
||||||
- name: Running Keystone bootstrap container
|
- include: bootstrap_service.yml
|
||||||
kolla_docker:
|
|
||||||
action: "start_container"
|
|
||||||
common_options: "{{ docker_common_options }}"
|
|
||||||
detach: False
|
|
||||||
environment:
|
|
||||||
KOLLA_BOOTSTRAP:
|
|
||||||
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
|
||||||
image: "{{ keystone_image_full }}"
|
|
||||||
name: "bootstrap_keystone"
|
|
||||||
restart_policy: "never"
|
|
||||||
volumes: "{{ node_config_directory }}/keystone/:{{ container_config_directory }}/:ro"
|
|
||||||
run_once: True
|
|
||||||
delegate_to: "{{ groups['keystone'][0] }}"
|
|
||||||
when: database_created
|
when: database_created
|
||||||
|
|||||||
15
ansible/roles/keystone/tasks/bootstrap_service.yml
Normal file
15
ansible/roles/keystone/tasks/bootstrap_service.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
- name: Running Keystone bootstrap container
|
||||||
|
kolla_docker:
|
||||||
|
action: "start_container"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
detach: False
|
||||||
|
environment:
|
||||||
|
KOLLA_BOOTSTRAP:
|
||||||
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
||||||
|
image: "{{ keystone_image_full }}"
|
||||||
|
name: "bootstrap_keystone"
|
||||||
|
restart_policy: "never"
|
||||||
|
volumes: "{{ node_config_directory }}/keystone/:{{ container_config_directory }}/:ro"
|
||||||
|
run_once: True
|
||||||
|
delegate_to: "{{ groups['keystone'][0] }}"
|
||||||
7
ansible/roles/keystone/tasks/upgrade.yml
Normal file
7
ansible/roles/keystone/tasks/upgrade.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
- include: config.yml
|
||||||
|
|
||||||
|
- include: bootstrap_service.yml
|
||||||
|
|
||||||
|
- include: start.yml
|
||||||
|
serial: "30%"
|
||||||
Reference in New Issue
Block a user