13ffd8a459
- Allow ARA installation to be disabled in gate-check-commit. For backwards compatibility, this remains defaulted to true. However in the OSA gate, the pre-run playbook will install ARA so we set it to false during the gate-check-commit run rather than waste time installing it twice. - Separate the ARA installation from loading. Continue installing ARA using the setup_ara function, but do not load ARA into the callback plugins env var there. Instead, we will load ARA into the ANSIBLE_CALLBACK_PLUGINS inside the openstack-ansible wrapper if it is installed. - Move ARA installation function call to run right after the ansible-runtime venv is created. This makes little difference except that ARA will now be installed in time for the get-ansible-role-requirements role clone run. Change-Id: I8ec359f5c65c957064a39b75b9c3ea3d3a9d9e89
45 lines
1.6 KiB
YAML
45 lines
1.6 KiB
YAML
---
|
|
# Copyright 2019, Logan Vig <logan2211@gmail.com>
|
|
#
|
|
# 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: Bootstrap the OSA AIO
|
|
hosts: all[0]
|
|
vars_files:
|
|
- "{{ zuul.executor.work_root }}/osa-gate-scenario.yml"
|
|
tasks:
|
|
- name: Run bootstrap-ansible script
|
|
become: yes
|
|
become_user: root
|
|
shell: scripts/bootstrap-ansible.sh
|
|
args:
|
|
chdir: "src/opendev.org/openstack/openstack-ansible"
|
|
executable: /bin/bash
|
|
environment:
|
|
# ZUUL_SRC_PATH is used by tests/get-ansible-role-requirements to
|
|
# where the CI provided git sources were cloned.
|
|
ZUUL_SRC_PATH: "{{ ansible_user_dir }}/src"
|
|
ANSIBLE_PACKAGE: "{{ ansible_package | default('') }}"
|
|
SETUP_ARA: 'true'
|
|
- name: Run bootstrap-aio script
|
|
become: yes
|
|
become_user: root
|
|
shell: scripts/bootstrap-aio.sh
|
|
args:
|
|
chdir: "src/opendev.org/openstack/openstack-ansible"
|
|
executable: /bin/bash
|
|
environment:
|
|
SCENARIO: "{{ scenario }}"
|
|
ACTION: "{{ action }}"
|
|
INSTALL_METHOD: "{{ install_method }}"
|