
The project was started in the following repository: https://github.com/kopecmartin/ansible-role-refstack-client This commit moves all content from the original repository to it's new one under x org: https://opendev.org/x/ansible-role-refstack-client Change-Id: I658157f25caef4ec47c8127378a890d65c7b53b1
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
---
|
|
- name: Generate tempest.conf as admin
|
|
shell: |
|
|
set -ex
|
|
source .venv/bin/activate
|
|
source {{ source_admin_credentials }}
|
|
discover-tempest-config \
|
|
--debug \
|
|
-v \
|
|
--create \
|
|
--out ./etc/tempest.conf
|
|
args:
|
|
executable: /bin/bash
|
|
chdir: "{{ refstack_client_source }}"
|
|
when: additional_tempestconf_params is not defined
|
|
|
|
- name: Generate tempest.conf as admin additional params
|
|
shell: |
|
|
set -ex
|
|
source .venv/bin/activate
|
|
source {{ source_admin_credentials }}
|
|
discover-tempest-config \
|
|
--debug \
|
|
-v \
|
|
--create \
|
|
--out ./etc/tempest.conf \
|
|
{{ additional_tempestconf_params }} \
|
|
image.http_image {{ url_cirros_image }}
|
|
args:
|
|
executable: /bin/bash
|
|
chdir: "{{ refstack_client_source }}"
|
|
when: additional_tempestconf_params is defined
|
|
|
|
- name: Generate tempest accounts.yaml file
|
|
shell: |
|
|
set -ex
|
|
export PATH=$PATH:/usr/local/sbin:/usr/sbin
|
|
source .venv/bin/activate
|
|
source {{ source_admin_credentials }}
|
|
printenv
|
|
tempest account-generator \
|
|
--config-file ./etc/tempest.conf \
|
|
--concurrency 3 \
|
|
./etc/accounts.yaml
|
|
args:
|
|
executable: /bin/bash
|
|
chdir: "{{ refstack_client_source }}"
|
|
|
|
- name: Cat generated accounts.yaml file
|
|
shell: |
|
|
cat ./etc/accounts.yaml
|
|
args:
|
|
executable: /bin/bash
|
|
chdir: "{{ refstack_client_source }}"
|