d2741460ff
- Execute ansible linters on ansible files - Join all linters verifications in one single job - Fixes Ansible roles and playbook to pass verification - Leave pep8 stand alone verification because of legacy OpenStack standard testing interface (required by openstack-tox-py* zuul project templates) This is intended to reduce the amount of CI jobs required to check and gate this project while adding verification for ansible playbooks and roles Change-Id: I44e03ffc8af21e798f8c7f709728a318764b328f
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
---
|
|
|
|
# devstack copies repos from hardcoded list of organizations only and performa
|
|
# is not there so e.g. os-faults repo can't be copied there easily and we need
|
|
# to do this on our own
|
|
# copied from https://opendev.org/openstack/devstack/src/branch/master/roles/setup-devstack-source-dirs/tasks/main.yaml
|
|
|
|
- hosts: all
|
|
tasks:
|
|
- name: Find source repos from performa organization
|
|
find:
|
|
paths:
|
|
- src/opendev.org/performa
|
|
file_type: directory
|
|
register: found_repos
|
|
|
|
- name: Copy Zuul repos into devstack working directory
|
|
synchronize:
|
|
src: "{{ item.path }}"
|
|
dest: /opt/stack
|
|
use_ssh_args: true
|
|
recursive: true
|
|
with_items: '{{ found_repos.files }}'
|
|
become: yes
|
|
|
|
- name: Set ownership of repos
|
|
file:
|
|
path: /opt/stack
|
|
state: directory
|
|
recurse: true
|
|
owner: stack
|
|
group: stack
|
|
become: yes
|
|
|
|
|
|
- hosts: all
|
|
roles:
|
|
- role: copy-build-sshkey
|
|
copy_sshkey_target_user: stack
|
|
- multi-node-setup
|
|
- orchestrate-devstack
|
|
|
|
|
|
- hosts: tempest
|
|
roles:
|
|
- role: tobiko
|
|
tags:
|
|
- tobiko-pre-run
|
|
vars:
|
|
tobiko_pre_run: true
|
|
tobiko_run: false
|
|
tobiko_post_run: false
|