openqa/worker: make createhdds git branch to use configurable

So we can test non-master branches on stg easier. May extend this
design to other repos (like the tests...) later.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-05-06 14:43:10 -07:00
parent 32f9933aad
commit 1b87504450
2 changed files with 7 additions and 3 deletions

View file

@ -1,2 +1,3 @@
openqa_hostname: localhost
openqa_repo: updates
openqa_createhdds_branch: master

View file

@ -1,5 +1,7 @@
# Required vars
# (none)
# Required vars with defaults
# - openqa_createhdds_branch
## string - The git branch of createhdds to check out
## default - master
- name: Install required packages
package:
@ -32,8 +34,9 @@
- name: Check out createhdds
git:
repo: https://pagure.io/fedora-qa/createhdds.git # noqa 401
repo: https://pagure.io/fedora-qa/createhdds.git
dest: /root/createhdds
version: "{{ openqa_createhdds_branch }}"
- name: Set up createhdds cron job
copy: src=createhdds dest=/etc/cron.daily/createhdds owner=root group=root mode=0755