b6d495c9c9
There is no record for why we implement the MQ vhost/user creation outside of the role in the playbook, when we could do it inside the role. Implementing it inside the role allows us to reduce the quantity of group_vars duplicated from the role, and allows us to better document the required variables in the role. The delegation can still be done as it is done in the playbook too. In this patch we implement two new variables: - octavia_oslomsg_rpc_setup_host - octavia_oslomsg_notify_setup_host These are used in the role to allow delegation of the MQ vhost/user setup for each type to any host, but they default to using the first member of the applicable oslomsg host group. We also adjust some of the defaults to automatically inherit existing vars set in group_vars form the integrated build so that we do not need to do the wiring in the integrated build's group vars. We still default them in the role too for independent role usage. Finally, we remove the test mq setup tasks and clean up any unused or unnecessary variables configured in tests. We also rename the ubuntu-16.04.yml file to ubuntu.yml to cover both xenial and bionic. This has become necessary because the 'Gather variables for each operating system' task in the galera_client role is picking up this role's vars file instead of its own. Change-Id: If7e3712dd70eb083b5dffc98e0c981ec4f513533
22 lines
726 B
YAML
22 lines
726 B
YAML
---
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- name: Playbook for installing Octavia
|
|
hosts: octavia_all
|
|
remote_user: root
|
|
gather_facts: true
|
|
vars_files:
|
|
- common/test-vars.yml
|
|
roles:
|
|
- role: "os_octavia"
|