Add nodesets.yaml and stop using tmpfs for docker

Change-Id: I6fa07a45f491e7101f85cb90731611409a279719
This commit is contained in:
Vladimir Kozhukalov 2023-12-05 16:27:40 -06:00
parent 235b8e9d65
commit 6537fe480e
3 changed files with 10 additions and 16 deletions

View File

@ -1,4 +1,5 @@
- job:
nodeset: loci-1node-ubuntu_jammy
name: loci-base
pre-run: playbooks/setup-gate.yaml
run: playbooks/loci-builder.yaml

9
.zuul.d/nodesets.yaml Normal file
View File

@ -0,0 +1,9 @@
- nodeset:
name: loci-1node-ubuntu_jammy
nodes:
- name: primary
label: ubuntu-jammy
groups:
- name: primary
nodes:
- primary

View File

@ -8,24 +8,8 @@
tasks:
- include_vars: vars.yaml
- name: Setup swap
block:
- command: fallocate -l20g /swap
- file:
path: /swap
mode: 0600
- command: mkswap /swap
- command: swapon /swap
become: True
- name: Install Docker
block:
- mount:
path: /var/lib/docker/
src: tmpfs
fstype: tmpfs
opts: size=25g
state: mounted
- include_role:
name: ensure-docker
- pip: