bde052c8e4
This patch moves in the Puppet OpenStack integration jobs as well as the module tests in-repo. Depends-On: Ib96ee354cbf9c88f9265f5743a97b2d013addc70 Change-Id: Idd846c569a6e067125e130f189be9ae8ffba1646
48 lines
1.6 KiB
YAML
48 lines
1.6 KiB
YAML
- hosts: all
|
|
tasks:
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master}
|
|
# Workaround for puppet-ceph, where we need to checkout
|
|
# puppet-openstack-integration from stable/pike when working on
|
|
# stable/jewel.
|
|
# Ceph Jewel works with Newton to Pike
|
|
if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then
|
|
ZUUL_BRANCH_REAL='stable/pike'
|
|
fi
|
|
CLONEMAP=`mktemp`
|
|
function cleanup {
|
|
rm -f $CLONEMAP
|
|
}
|
|
trap cleanup EXIT
|
|
cat > $CLONEMAP << EOF
|
|
clonemap:
|
|
- name: openstack/puppet-openstack-integration
|
|
dest: puppet-openstack-integration
|
|
EOF
|
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \
|
|
--cache-dir /opt/git \
|
|
--zuul-branch $ZUUL_BRANCH_REAL \
|
|
git://git.openstack.org openstack/puppet-openstack-integration
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
|
|
|
- include_role:
|
|
name: bindep
|
|
vars:
|
|
bindep_dir: "src/git.openstack.org/openstack/puppet-openstack-integration"
|
|
|
|
- name: Create folder for gems
|
|
file:
|
|
path: "{{ ansible_user_dir }}/workspace/puppet-openstack-integration/.bundled_gems"
|
|
state: directory
|
|
|
|
- name: Install bundler
|
|
gem:
|
|
name: bundler
|
|
user_install: false
|
|
environment:
|
|
GEM_HOME: "{{ ansible_user_dir }}/workspace/puppet-openstack-integration/.bundled_gems" |