6208fc4f3c
This is a mechanically generated change to replace openstack.org git:// URLs with https:// equivalents. This is in aid of a planned future move of the git hosting infrastructure to a self-hosted instance of gitea (https://gitea.io), which does not support the git wire protocol at this stage. This update should result in no functional change. For more information see the thread at http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html Change-Id: I34c2be045d56d99792fcc1533b67c2c8de1aedac
55 lines
1.8 KiB
YAML
55 lines
1.8 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 \
|
|
https://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
|
|
shell:
|
|
cmd: |
|
|
ruby <<EOF
|
|
cmd = 'gem install bundler --no-rdoc --no-ri --verbose'
|
|
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then
|
|
cmd += ' -v 1.17.3'
|
|
end
|
|
system(cmd)
|
|
EOF
|
|
environment:
|
|
GEM_HOME: "{{ ansible_user_dir }}/workspace/puppet-openstack-integration/.bundled_gems"
|