Merge "Fix amphora image builds to use DIB bindep"
This commit is contained in:
commit
eff69261f4
@ -8,51 +8,6 @@
|
|||||||
become: yes
|
become: yes
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == 'RedHat'
|
- ansible_os_family == 'RedHat'
|
||||||
- name: Install apt packages
|
|
||||||
apt:
|
|
||||||
pkg: "{{ item }}"
|
|
||||||
state: "latest"
|
|
||||||
update_cache: yes
|
|
||||||
register: install_packages
|
|
||||||
become: yes
|
|
||||||
until: install_packages is success
|
|
||||||
retries: 5
|
|
||||||
delay: 2
|
|
||||||
with_items:
|
|
||||||
- qemu-utils
|
|
||||||
- uuid-runtime
|
|
||||||
- curl
|
|
||||||
- kpartx
|
|
||||||
- python3-yaml
|
|
||||||
- debootstrap
|
|
||||||
- qemu
|
|
||||||
- bc
|
|
||||||
- python3-venv
|
|
||||||
- python3-setuptools
|
|
||||||
when:
|
|
||||||
- ansible_os_family == 'Debian'
|
|
||||||
- name: Install rpm packages
|
|
||||||
dnf:
|
|
||||||
pkg: "{{ item }}"
|
|
||||||
state: "latest"
|
|
||||||
update_cache: yes
|
|
||||||
register: install_packages
|
|
||||||
become: yes
|
|
||||||
until: install_packages is success
|
|
||||||
retries: 5
|
|
||||||
delay: 2
|
|
||||||
with_items:
|
|
||||||
- qemu-img
|
|
||||||
- uuid
|
|
||||||
- curl
|
|
||||||
- kpartx
|
|
||||||
- python3-pyyaml
|
|
||||||
- qemu-kvm
|
|
||||||
- python3-setuptools
|
|
||||||
- yum
|
|
||||||
- podman
|
|
||||||
when:
|
|
||||||
- ansible_os_family == 'RedHat'
|
|
||||||
- name: Install required pip packages
|
- name: Install required pip packages
|
||||||
pip:
|
pip:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
@ -65,7 +20,14 @@
|
|||||||
delay: 2
|
delay: 2
|
||||||
become: yes
|
become: yes
|
||||||
with_items:
|
with_items:
|
||||||
|
- bindep
|
||||||
- diskimage-builder
|
- diskimage-builder
|
||||||
|
- setuptools
|
||||||
|
- name: Install binary dependencies from diskimage-builder
|
||||||
|
include_role:
|
||||||
|
name: bindep
|
||||||
|
vars:
|
||||||
|
bindep_dir: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/diskimage-builder'].src_dir }}"
|
||||||
- name: Ensure artifacts/images directory exists
|
- name: Ensure artifacts/images directory exists
|
||||||
file:
|
file:
|
||||||
path: '{{ ansible_user_dir }}/test-images'
|
path: '{{ ansible_user_dir }}/test-images'
|
||||||
|
@ -167,6 +167,7 @@
|
|||||||
not Git master. This job does not publish the image.
|
not Git master. This job does not publish the image.
|
||||||
run: playbooks/image-build/run.yaml
|
run: playbooks/image-build/run.yaml
|
||||||
required-projects:
|
required-projects:
|
||||||
|
- openstack/diskimage-builder
|
||||||
- openstack/octavia
|
- openstack/octavia
|
||||||
- openstack/octavia-lib
|
- openstack/octavia-lib
|
||||||
vars:
|
vars:
|
||||||
@ -179,8 +180,6 @@
|
|||||||
description: |
|
description: |
|
||||||
Builds an Ubuntu Jammy amphora image using diskimage-builder from Git
|
Builds an Ubuntu Jammy amphora image using diskimage-builder from Git
|
||||||
master. This job does not publish the image.
|
master. This job does not publish the image.
|
||||||
required-projects:
|
|
||||||
- openstack/diskimage-builder
|
|
||||||
vars:
|
vars:
|
||||||
amphora_os: ubuntu
|
amphora_os: ubuntu
|
||||||
amphora_os_release: jammy
|
amphora_os_release: jammy
|
||||||
@ -192,8 +191,6 @@
|
|||||||
description: |
|
description: |
|
||||||
Builds a CentOS 9 Stream amphora image using diskimage-builder from Git
|
Builds a CentOS 9 Stream amphora image using diskimage-builder from Git
|
||||||
master. This job does not publish the image.
|
master. This job does not publish the image.
|
||||||
required-projects:
|
|
||||||
- openstack/diskimage-builder
|
|
||||||
vars:
|
vars:
|
||||||
amphora_os: centos
|
amphora_os: centos
|
||||||
amphora_os_release: 9-stream
|
amphora_os_release: 9-stream
|
||||||
@ -205,8 +202,6 @@
|
|||||||
description: |
|
description: |
|
||||||
Builds a Rocky Linux 9 amphora image using diskimage-builder from Git
|
Builds a Rocky Linux 9 amphora image using diskimage-builder from Git
|
||||||
master. This job does not publish the image.
|
master. This job does not publish the image.
|
||||||
required-projects:
|
|
||||||
- openstack/diskimage-builder
|
|
||||||
vars:
|
vars:
|
||||||
amphora_os: rocky
|
amphora_os: rocky
|
||||||
amphora_os_release: 9
|
amphora_os_release: 9
|
||||||
|
Loading…
Reference in New Issue
Block a user