Add swap space for integration job
... to avoid frequent memory allocation failure. Change-Id: Id2012de86c066bef75e4151e502cd2aac890d794
This commit is contained in:
parent
52470cfe8c
commit
f4429e07d8
|
@ -42,3 +42,12 @@
|
|||
EOF
|
||||
environment:
|
||||
GEM_HOME: "{{ ansible_user_dir }}/workspace/puppet-openstack-integration/.bundled_gems"
|
||||
|
||||
- name: Prepare swap
|
||||
shell:
|
||||
cmd: |
|
||||
dd if=/dev/zero of=/tmp/swapfile bs=1GiB count=4 && \
|
||||
chmod 0600 /tmp/swapfile && \
|
||||
mkswap /tmp/swapfile && \
|
||||
swapon /tmp/swapfile
|
||||
become: yes
|
||||
|
|
Loading…
Reference in New Issue