From 54b0872278deefb70cb61b62123bc3d96d0bc23b Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Sun, 29 May 2022 12:24:42 +0100 Subject: [PATCH] Run keystone pre-service setup tasks on all keystone hosts first Some of these tasks, such as setting up ssh keys are required to be complete on all hosts before the main keystone service deployment happens. This change runs a specific tasks file from the os_keystone role across all of the keystone hosts to do the initial setup, before the os_keystone role is run again with a serial: setting appropiate for deploying the actual service code in an HA deployment. Closes-Bug: 1975718 Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_keystone/+/843739 Change-Id: Ib3efe0c43e20904cfbd9b89523e5118413c2282e --- playbooks/os-keystone-install.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/playbooks/os-keystone-install.yml b/playbooks/os-keystone-install.yml index 569339a202..2c926f077e 100644 --- a/playbooks/os-keystone-install.yml +++ b/playbooks/os-keystone-install.yml @@ -38,6 +38,17 @@ tags: - always +- name: Pre-service deployment + hosts: keystone_all + gather_facts: false + tasks: + - name: "Pre-service deployment tasks from os_keystone role" + include_role: + name: os_keystone + tasks_from: main_pre.yml + tags: + - keystone + - name: Installation and setup of Keystone hosts: keystone_all serial: "{{ keystone_serial | default(['1', '100%']) }}"