zuul-jobs/zuul.d/jobs.yaml
James E. Blair 421e59f7bc Add debian-bullseye image
This adds an initial debian bullseye dib build job.

Depends-On: https://review.opendev.org/929147
Change-Id: I63f4077305981b7fbce850ae642923cc117a7810
2024-09-12 19:04:00 -07:00

88 lines
3.4 KiB
YAML

- job:
name: opendev-build-diskimage-base
description: |
The abstract base job for building VM images used in OpenDev's Zuul
parent: build-diskimage
timeout: 7200
abstract: true
pre-run:
- playbooks/opendev-build-diskimage-base/pre.yaml
vars:
# TODO(corvus): This will eventually be supplied by Zuul
build_diskimage_formats:
- qcow2
build_diskimage_elements: &base_elements
- vm
- simple-init
- openstack-repos
- nodepool-base
- growroot
- infra-package-needs
build_diskimage_environment:
TMPDIR: /opt/dib_tmp
ELEMENTS_PATH: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/opendev/zuul-jobs'].src_dir }}/dib-elements"
# TODO: Do we want streaming logs?
DIB_QUIET: '0'
DIB_NO_TMPFS: '1'
DIB_CHECKSUM: '1'
DIB_IMAGE_CACHE: /opt/dib_cache
DIB_JOURNAL_SIZE: '512'
DIB_GRUB_TIMEOUT: '0'
GIT_HTTP_LOW_SPEED_TIME: '300'
GIT_HTTP_LOW_SPEED_LIMIT: '1000'
DIB_SHOW_IMAGE_USAGE: '1'
ZUUL_USER_SSH_PUBLIC_KEY: |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDh5u0DWNi0d3uqI82izAxVTUTrGl36L3szEqV9WrilGmxaTtp9X7HrktJ5J+rvxQqz39llTf1v7iYA4CNKto/48RBAB0mKEEI4x4iw+
fu/BLU7nu7ewSfXLUxHahxaTgIk2KcbegknD5NzMjalyfNfgTPDGv8BjwHeeNdZmJMBvPFGu6fO48M4yK1tiQn0kAkaH4oII/M4pyF8vy9tPTODAD7RvnMvQAb08LZZvE/IPzJAHNXFRb1v+DBa38
fOvdyaz/nibrsxiOWZxQVLgjYciUeDy1xvXADaWlqvxmLy+90LHbJFbGxK4AN0mWfwBiUMVyxZjkun39pjTNl2k09OhOq+R52UqnehMc4eBdZCddnCUq4/efbFCJkqe5wY+SE8fYybJjauUL64zyr
wf6yfWkXvPVHWa9Y+NCmvH8PCBUcsQnwO7l/Yb4N+8+u6zkODyuc9wLAY+DpnptE3plXtvUs5negC4fvJSnOHpWXuoi9yzp7IlPf6fSjMMDQo0JjCYJwazdzqrIH2VSCcfHAqWF0ECR8IgwZV1bp0
xFe0UN0Gjsgkozqf8rvs1AYyTSeD19Wg9j+crTke8E1sfoI/qFzHwzBQFKJ+2l0cs7pZWJBARlhbt1j1IouS2aH+74xwsavRhBz4IsFTPqWiP6JTrgk5cgKRnTqInzNfdaLeUw== zuul-worker@
openstack.org
- job:
name: opendev-build-diskimage-base-debuntu
description: |
An abstract base job for building Debian or Ubuntu based VM images
parent: opendev-build-diskimage-base
abstract: true
vars:
build_diskimage_environment:
DIB_APT_LOCAL_CACHE: '0'
DIB_DISABLE_APT_CLEANUP: '1'
DIB_DEBOOTSTRAP_EXTRA_ARGS: '--no-check-gpg'
- job:
name: opendev-build-diskimage-debian-bullseye
description: |
Build the OpenDev Debian bullseye VM image
parent: opendev-build-diskimage-base-debuntu
vars:
build_diskimage_image_name: debian-bullseye
build_diskimage_elements:
- *base_elements
- debian-minimal
- cache-devstack
build_diskimage_environment:
DIB_RELEASE: 'bullseye'
DIB_DISTRIBUTION_MIRROR: 'https://{{ zuul_site_mirror_fqdn }}/debian'
DIB_DEBIAN_SECURITY_MIRROR:
'https://{{ zuul_site_mirror_fqdn }}/debian-security'
DIB_BLOCK_DEVICE_CONFIG: |
# Default single partition loopback
- local_loop:
name: image0
- partitioning:
base: image0
label: mbr
partitions:
- name: root
flags: [ boot, primary ]
size: 100%
mkfs:
mount:
mount_point: /
fstab:
options: "defaults,nobarrier,noatime"
fsck-passno: 1