"Fossies" - the Fresh Open Source Software Archive

Member "zaqar-10.0.0/playbooks/legacy/tempest-devstack-zaqar-base/run.yaml" (13 May 2020, 2013 Bytes) of package /linux/misc/openstack/zaqar-10.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "run.yaml": 9.0.0_vs_10.0.0.

    1 - hosts: all
    2   name: Tempest Devstack Zaqar Base
    3   tasks:
    4 
    5     - name: Ensure legacy workspace directory
    6       file:
    7         path: '{{ ansible_user_dir }}/workspace'
    8         state: directory
    9 
   10     - shell:
   11         cmd: |
   12           set -e
   13           set -x
   14           cat > clonemap.yaml << EOF
   15           clonemap:
   16             - name: openstack/devstack-gate
   17               dest: devstack-gate
   18           EOF
   19           /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
   20               https://opendev.org \
   21               openstack/devstack-gate
   22         executable: /bin/bash
   23         chdir: '{{ ansible_user_dir }}/workspace'
   24       environment: '{{ zuul | zuul_legacy_vars }}'
   25 
   26     - shell:
   27         cmd: |
   28           set -e
   29           set -x
   30           cat << 'EOF' >>"/tmp/dg-local.conf"
   31           [[local|localrc]]
   32           enable_plugin zaqar https://opendev.org/openstack/zaqar
   33            # Enable Zaqar Tempest plugin
   34           TEMPEST_PLUGINS='/opt/stack/new/zaqar-tempest-plugin'
   35           USE_PYTHON3="True"
   36 
   37           EOF
   38         executable: /bin/bash
   39         chdir: '{{ ansible_user_dir }}/workspace'
   40       environment: '{{ zuul | zuul_legacy_vars }}'
   41 
   42     - shell:
   43         cmd: |
   44           set -e
   45           set -x
   46           export PROJECTS="openstack/python-zaqarclient $PROJECTS"
   47           export PYTHONUNBUFFERED=true
   48           export ENABLED_SERVICES=tempest
   49           export DEVSTACK_GATE_TEMPEST_REGEX="zaqar_tempest_plugin.tests"
   50           export DEVSTACK_GATE_TEMPEST=0
   51 
   52           function gate_hook {
   53               cd /opt/stack/new/zaqar/devstack/gate
   54               ./gate_hook.sh tempest "{{ database_backend }}"
   55           }
   56 
   57           export PROJECTS="openstack/zaqar-tempest-plugin $PROJECTS"
   58           export -f gate_hook
   59 
   60           cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
   61           ./safe-devstack-vm-gate-wrap.sh
   62         executable: /bin/bash
   63         chdir: '{{ ansible_user_dir }}/workspace'
   64       environment: '{{ zuul | zuul_legacy_vars }}'