Skip to content

Commit

Permalink
Update default release to bookworm
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-c committed Oct 19, 2023
1 parent ab99feb commit 23bcf16
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 15 deletions.
8 changes: 8 additions & 0 deletions molecule/default/Dockerfile.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# TODO remove when more tools have deb822 support
# replace deb822-formatted sources file with one-line version
FROM {{ item.image }}

RUN echo \
'deb http://deb.debian.org/debian bookworm main\ndeb http://deb.debian.org/debian-security bookworm-security main\ndeb http://deb.debian.org/debian bookworm-updates main' > /etc/apt/sources.list

RUN rm /etc/apt/sources.list.d/debian.sources
8 changes: 3 additions & 5 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
driver:
name: docker
platforms:
- name: bullseye
- name: bookworm
# pin to current debian stable
image: python:3-bullseye
pre_build_image: true
image: python:3-bookworm
groups:
- amd_firmware
- log_collection
# TODO re-enable once updated to bookworm
# - stream_host
- stream_host
- gui
- hp_firmware
7 changes: 7 additions & 0 deletions molecule/default/prepare.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Update package cache
hosts: all
tasks:
- name: Update apt cache
ansible.builtin.apt:
update_cache: true
4 changes: 2 additions & 2 deletions molecule/libvirt/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ driver:
name: libvirt
provision: true
platforms:
- name: bullseye
- name: bookworm
# pin to current debian stable
box: debian/bullseye64
# installing Zoom flatpak requires more than 512 MB memory
memory: 1024
box: debian/bookworm64
groups:
- ansible_pull_managed
# TODO enable after able to add component idempotently
Expand Down
2 changes: 1 addition & 1 deletion molecule/resources/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ driver:
platforms:
- name: instance
# pin to current debian stable
image: python:3-bullseye
image: python:3-bookworm
pre_build_image: true
dependency:
name: galaxy
Expand Down
4 changes: 2 additions & 2 deletions roles/amd_firmware/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
packages:
- software-properties-common

- name: Add non-free sources
ansible.builtin.command: apt-add-repository non-free
- name: Add non-free-firmware sources
ansible.builtin.command: apt-add-repository --yes non-free-firmware
register: add_component_result
notify:
- Update package lists
Expand Down
1 change: 1 addition & 0 deletions roles/base/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
- name: Install tool to detect local caching proxies
ansible.builtin.apt:
name: squid-deb-proxy-client
when: ansible_facts["distribution_major_version"] != "12"
2 changes: 1 addition & 1 deletion roles/biostar_firmware/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
platforms:
- name: instance
# pin to current debian stable
image: python:3-bullseye
image: python:3-bookworm
pre_build_image: true
provisioner:
name: ansible
Expand Down
4 changes: 2 additions & 2 deletions roles/biostar_firmware/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
packages:
- software-properties-common

- name: Add non-free sources
ansible.builtin.command: apt-add-repository non-free
- name: Add non-free-firmware sources
ansible.builtin.command: apt-add-repository --yes non-free-firmware
register: add_component_result
notify:
- Update package lists
Expand Down
4 changes: 2 additions & 2 deletions roles/hp_firmware/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
packages:
- software-properties-common

- name: Add non-free sources
ansible.builtin.command: apt-add-repository non-free
- name: Add non-free-firmware sources
ansible.builtin.command: apt-add-repository --yes non-free-firmware
register: add_component_result
notify:
- Update package lists
Expand Down

0 comments on commit 23bcf16

Please sign in to comment.