diff options
author | Sachin Prabhu <sprabhu@redhat.com> | 2020-05-16 20:34:54 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2020-05-18 13:05:50 +0200 |
commit | 53fe7a7065ef25d349f765fdefcdc787072ec776 (patch) | |
tree | 93e08f52a5e41641bebf472764aa3b34f8a7d57d /vagrant | |
parent | 921bb2e132df4a3422ef90251a7d98d00c22147d (diff) | |
download | samba-integration-53fe7a7065ef25d349f765fdefcdc787072ec776.tar.gz samba-integration-53fe7a7065ef25d349f765fdefcdc787072ec776.tar.xz samba-integration-53fe7a7065ef25d349f765fdefcdc787072ec776.zip |
Use variables to specify test repo and branch
Allows users to easily override to use a different test repo and branch.
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Diffstat (limited to 'vagrant')
-rw-r--r-- | vagrant/ansible/roles/client.test.prep/defaults/test_repo.yml | 3 | ||||
-rw-r--r-- | vagrant/ansible/roles/client.test.prep/tasks/main.yml | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/vagrant/ansible/roles/client.test.prep/defaults/test_repo.yml b/vagrant/ansible/roles/client.test.prep/defaults/test_repo.yml new file mode 100644 index 0000000..614eb97 --- /dev/null +++ b/vagrant/ansible/roles/client.test.prep/defaults/test_repo.yml @@ -0,0 +1,3 @@ +--- +test_repo: "https://github.com/gluster/samba-integration.git" +test_repo_branch: "tests" diff --git a/vagrant/ansible/roles/client.test.prep/tasks/main.yml b/vagrant/ansible/roles/client.test.prep/tasks/main.yml index 65b695b..22da4c3 100644 --- a/vagrant/ansible/roles/client.test.prep/tasks/main.yml +++ b/vagrant/ansible/roles/client.test.prep/tasks/main.yml @@ -1,8 +1,8 @@ --- -- name: Fetch the latest samba-integration-tests repo +- name: Fetching tests repo git: - repo: 'https://github.com/gluster/samba-integration.git' - version: tests + repo: "{{ test_repo }}" + version: "{{ test_repo_branch }}" dest: /root/samba-integration-tests - name: Create a symlink for test-info.yml file |