
This commit was bulk generated and pushed by the OpenDev sysadmins as a part of the Git hosting and code review systems migration detailed in these mailing list posts: http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html Attempts have been made to correct repository namespaces and hostnames based on simple pattern matching, but it's possible some were updated incorrectly or missed entirely. Please reach out to us via the contact information listed at https://opendev.org/ with any questions you may have.
72 lines
2.1 KiB
YAML
72 lines
2.1 KiB
YAML
- block:
|
|
- debug:
|
|
var: source_credentials_commands
|
|
|
|
- name: Create python-tempestconf venv with latest pip, setuptools and pbr
|
|
pip:
|
|
virtualenv: "{{ virtualenvs.tempestconf }}"
|
|
name: "{{ item }}"
|
|
state: latest
|
|
virtualenv_python: "{{ tempestconf_pip_virtualenv_python|default(omit) }}"
|
|
with_items:
|
|
- pip
|
|
- setuptools
|
|
- pbr
|
|
|
|
- name: Debug, list tempestconf dir
|
|
shell: |
|
|
set -ex
|
|
ls -all .
|
|
pwd
|
|
args:
|
|
chdir: "{{ tempestconf_src_relative_path }}"
|
|
|
|
- name: Install python-tempestconf
|
|
pip:
|
|
name: "."
|
|
virtualenv: "{{ virtualenvs.tempestconf }}"
|
|
chdir: "{{ tempestconf_src_relative_path }}"
|
|
virtualenv_python: "{{ tempestconf_pip_virtualenv_python|default(omit) }}"
|
|
|
|
- name: "Cat keystonerc_ file (only in packstack case)"
|
|
shell: |
|
|
set -ex
|
|
cat {{ ansible_user_dir }}/keystonerc_{{ user }}
|
|
ignore_errors: True
|
|
args:
|
|
executable: /bin/bash
|
|
|
|
- name: Generate tempest configuration script
|
|
template:
|
|
src: generate-tempestconf.sh.j2
|
|
dest: "{{ tempestconf_src_relative_path }}/generate-tempestconf.sh"
|
|
mode: 0744
|
|
|
|
- include_tasks: test-demo-user.yaml
|
|
when: test_demo_user
|
|
|
|
- name: Generate tempest configuration file
|
|
shell: |
|
|
./generate-tempestconf.sh
|
|
args:
|
|
chdir: "{{ tempestconf_src_relative_path }}"
|
|
executable: /bin/bash
|
|
|
|
# tempest role which will run tests has tempest in {{ devstack_base_dir }}
|
|
# location, therefore the file is copied there
|
|
- name: Copy tempest.conf to the tempest directory
|
|
shell: |
|
|
set -x
|
|
cp {{ tempestconf_src_relative_path }}/etc/tempest.conf {{ devstack_base_dir }}/tempest/etc/tempest.conf
|
|
when: output_path is not defined
|
|
|
|
- name: Copy tempest.conf to the specified location
|
|
become: yes
|
|
shell: |
|
|
set -x
|
|
cp {{ tempestconf_src_relative_path }}/etc/tempest.conf {{ output_path }}
|
|
when: output_path is defined
|
|
|
|
vars:
|
|
tempestconf_src_relative_path: "{{ zuul.projects['opendev.org/openstack/python-tempestconf'].src_dir }}"
|