puppet-openstack-integration/playbooks/prepare-node-beaker.yaml
Tobias Urdin fff72afe75 Remove zuul-cloner usage
Depends-On: https://review.opendev.org/#/c/667439/
Change-Id: I6e11c12ad73c89466aefbb926c111ed1d00784b8
2019-06-26 23:16:01 +02:00

25 lines
919 B
YAML

- hosts: all
tasks:
- shell:
cmd: |
set -e
set -x
if [ -d /home/zuul/src/opendev.org/$ZUUL_PROJECT ]; then
cp -dR /home/zuul/src/opendev.org/$ZUUL_PROJECT/. .
else
git clone https://opendev.org/$ZUUL_PROJECT .
fi
if [ -d /home/zuul/src/opendev.org/openstack/puppet-openstack-integration ]; then
[ ! -d puppet-openstack-integration ] && mkdir puppet-openstack-integration
cp -dR /home/zuul/src/opendev.org/openstack/puppet-openstack-integration/. puppet-openstack-integration
else
git clone https://opendev.org/openstack/puppet-openstack-integration puppet-openstack-integration
fi
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- include_role:
name: bindep