ansible-role-refstack-client/playbooks/refstack-client-devstack.yaml
Martin Kopec 1a03d0fe8d Add opt to skip ensure-tox role in jobs
refstack_client_ensure_tox option is added, if it's set to to
False, refstack-client's jobs will not run ensure-tox role.
By default the ensure-tox is ran = if the opt is not set at all
or it's set to True.

Change-Id: Ia9c41b19517b85013e0064194f823bc0ec069efb
2022-02-28 15:26:53 +00:00

34 lines
1.4 KiB
YAML

---
- hosts: all
roles:
# the role is inherited from openstack/devstack project
- run-devstack
- hosts: tempest
vars:
devstack_base_dir: "/opt/stack"
tasks:
# NOTE: devstack jobs are failing on Run Tempest task
# it is because tox command is not found. Adding 'ensure-tox'
# role here to make sure that tox is installed and it
# will not break the tempest tests.
- name: Ensure tox is installed
include_role:
name: ensure-tox
vars:
ensure_global_symlinks: true
when: refstack_client_ensure_tox is not defined or (refstack_client_ensure_tox is defined and refstack_client_ensure_tox)
- include_vars: ../defaults/main.yaml
- name: Run ansible-role-refstack-client
include_tasks: ../tasks/main.yaml
vars:
refstack_client_source: "/home/zuul/{{ zuul.projects['opendev.org/openinfra/refstack-client'].src_dir }}"
tempestconf_source: "/home/zuul/{{ zuul.projects['opendev.org/openinfra/python-tempestconf'].src_dir }}"
source_credentials: "{{ devstack_base_dir }}/devstack/openrc demo demo"
source_admin_credentials: "{{ devstack_base_dir }}/devstack/openrc admin admin"
# not all backends support shrinking shares, LVM one which is used in
# this job does not support the shrinking feature
additional_tempestconf_params: "auth.tempest_roles Member object-storage.operator_role Member share.run_shrink_tests False"