diff options
| author | Michal Jastrzebski <michal.jastrzebski@intel.com> | 2015-12-14 15:10:02 -0600 |
|---|---|---|
| committer | SamYaple <sam@yaple.net> | 2016-01-13 18:48:55 +0000 |
| commit | 26524c74753c1a20542d0aa9ba3a35c6bb430606 (patch) | |
| tree | be837f44f12304935a0d1254205dfb36bf87556b | |
| parent | a87c2a69299d4061eced4b7dd504fb781439a6f5 (diff) | |
| download | kolla-26524c74753c1a20542d0aa9ba3a35c6bb430606.tar.gz kolla-26524c74753c1a20542d0aa9ba3a35c6bb430606.zip | |
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
| -rw-r--r-- | ansible/roles/keystone/tasks/bootstrap.yml | 15 | ||||
| -rw-r--r-- | ansible/roles/keystone/tasks/bootstrap_service.yml | 15 | ||||
| -rw-r--r-- | ansible/roles/keystone/tasks/upgrade.yml | 7 |
3 files changed, 23 insertions, 14 deletions
diff --git a/ansible/roles/keystone/tasks/bootstrap.yml b/ansible/roles/keystone/tasks/bootstrap.yml index 5d66451ee..dc1ecd626 100644 --- a/ansible/roles/keystone/tasks/bootstrap.yml +++ b/ansible/roles/keystone/tasks/bootstrap.yml @@ -37,18 +37,5 @@ run_once: True delegate_to: "{{ groups['keystone'][0] }}" -- 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] }}" +- include: bootstrap_service.yml when: database_created diff --git a/ansible/roles/keystone/tasks/bootstrap_service.yml b/ansible/roles/keystone/tasks/bootstrap_service.yml new file mode 100644 index 000000000..6b8ad2bfa --- /dev/null +++ b/ansible/roles/keystone/tasks/bootstrap_service.yml @@ -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] }}" diff --git a/ansible/roles/keystone/tasks/upgrade.yml b/ansible/roles/keystone/tasks/upgrade.yml new file mode 100644 index 000000000..c0e3b19a4 --- /dev/null +++ b/ansible/roles/keystone/tasks/upgrade.yml @@ -0,0 +1,7 @@ +--- +- include: config.yml + +- include: bootstrap_service.yml + +- include: start.yml + serial: "30%" |
