Hardcode windmill source directory for job playbooks

This is important when are doing cross project testing, since
zuul.project.src_dir is dynamic to the project running the jobs.

Change-Id: I8684fcaf7412bdfe70727922d2d6f289481bcf36
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-04-10 20:48:29 -04:00
parent d83d4ff315
commit 04835bedaa
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
4 changed files with 9 additions and 7 deletions

View File

@ -0,0 +1,2 @@
---
windmill_src_dir: "{{ zuul.projects['git.openstack.org/openstack/windmill'].src_dir }}"

View File

@ -2,7 +2,7 @@
tasks:
- name: Run ansible-playbook for collect-logs.yaml
args:
chdir: "{{ zuul.project.src_dir }}"
chdir: "{{ windmill_src_dir }}"
shell: tox -evenv -- ansible-playbook -i inventory/testing/hosts tests/collect-logs.yaml
- name: Ensure ara-report directory exists

View File

@ -2,17 +2,17 @@
tasks:
- name: Bootstrap tox environment
args:
chdir: "{{ zuul.project.src_dir }}"
chdir: "{{ windmill_src_dir }}"
command: tox -evenv --notest
- name: Install bindep dependendies
args:
chdir: "{{ zuul.project.src_dir }}"
chdir: "{{ windmill_src_dir }}"
executable: /bin/bash
shell: source .tox/venv/bin/activate; ./tools/install_bindep.sh
- name: Install ansible roles via galaxy
args:
chdir: "{{ zuul.project.src_dir }}"
chdir: "{{ windmill_src_dir }}"
executable: /bin/bash
shell: source .tox/venv/bin/activate; ./tools/install_roles.sh

View File

@ -2,15 +2,15 @@
tasks:
- name: Bootstrap bastion node using ansible
args:
chdir: "{{ zuul.project.src_dir }}"
chdir: "{{ windmill_src_dir }}"
shell: tox -evenv -- ansible-playbook -i inventory/testing/hosts playbooks/bastion.yaml
- name: Run ansible-playbook for site.yaml
args:
chdir: "{{ zuul.project.src_dir }}"
chdir: "{{ windmill_src_dir }}"
shell: tox -evenv -- ansible-playbook -i inventory/testing/hosts playbooks/site.yaml --extra-vars "@tests/extra-vars.yaml"
- name: Run ansible-playbook for prove.yaml
args:
chdir: "{{ zuul.project.src_dir }}"
chdir: "{{ windmill_src_dir }}"
shell: tox -evenv -- ansible-playbook -i inventory/testing/hosts playbooks/prove.yaml