Files
puppet-openstack-integration/playbooks/prepare-node-integration.yaml
Takashi Kajinami 28bc055fb9 Integration jobs: Increase default swap size
This change increases default swap size, installed by the run-test.sh
script, from 4GiB to 8GiB, because now we see frequent failures caused
by memory shortage.

This removes the separate ansible task to create an additional swap
space (added by f4429e07d8 ) because now
the enough amount is created by run-test.sh.

Change-Id: I24ebef234c79e636b24e47535732aea74e52a241
2022-03-30 13:54:54 +00:00

45 lines
1.7 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
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 -b $ZUUL_BRANCH_REAL 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
vars:
bindep_dir: "src/opendev.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-document --verbose --no-user-install'
cmd += ' -v 2.2.11'
system(cmd)
EOF
environment:
GEM_HOME: "{{ ansible_user_dir }}/workspace/puppet-openstack-integration/.bundled_gems"