Skip to content

Commit

Permalink
fix: correct package names for debian 11, drop support for debian 9
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainfaivre committed Dec 13, 2023
1 parent a0ae21c commit a9cd134
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ rubocop:
# default-oraclelinux-7-tiamat-py3: {extends: '.test_instance'}
# default-almalinux-8-tiamat-py3: {extends: '.test_instance'}
# default-rockylinux-8-tiamat-py3: {extends: '.test_instance'}
# default-debian-11-master-py3: {extends: '.test_instance'}
default-debian-11-master-py3: {extends: '.test_instance'}
default-debian-10-master-py3: {extends: '.test_instance'}
# clean-debian-10-master-py3: {extends: '.test_instance'}
default-debian-9-master-py3: {extends: '.test_instance'}
# default-debian-9-master-py3: {extends: '.test_instance'}
default-ubuntu-2204-master-py3: {extends: '.test_instance_failure_permitted'}
default-ubuntu-2004-master-py3: {extends: '.test_instance'}
default-ubuntu-1804-master-py3: {extends: '.test_instance'}
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ repos:
always_run: true
pass_filenames: false
- repo: https://github.com/warpnet/salt-lint
rev: v0.8.0
rev: v0.9.2
hooks:
- id: salt-lint
name: Check Salt files using salt-lint
Expand Down
2 changes: 1 addition & 1 deletion libvirt/parameters/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ values:
libvirt_pkg: libvirt
qemu_pkg: qemu
python2_pkg: libvirt-python
python3_pkg: libvirt-python3
python3_pkg: python3-libvirt
libvirt_service: libvirtd
libvirtd_config: /etc/libvirt/libvirtd.conf
daemon_config_path: {}
Expand Down
1 change: 0 additions & 1 deletion libvirt/parameters/os/AlmaLinux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@
---
values:
python2_pkg: ~
python3_pkg: python3-libvirt
...
1 change: 0 additions & 1 deletion libvirt/parameters/os/CentOS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@
---
values:
python2_pkg: ~
python3_pkg: python3-libvirt
...
1 change: 0 additions & 1 deletion libvirt/parameters/os/Fedora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@
---
values:
python2_pkg: python2-libvirt
python3_pkg: python3-libvirt
...
1 change: 0 additions & 1 deletion libvirt/parameters/os/Rocky.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@
---
values:
python2_pkg: ~
python3_pkg: python3-libvirt
...
4 changes: 1 addition & 3 deletions libvirt/parameters/os_family/Debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@
values:
libvirt_pkg: libvirt-daemon-system
libvirt_service: libvirtd
qemu_pkg: qemu-kvm
qemu_pkg: qemu-system-x86
python2_pkg: python-libvirt
python3_pkg: python3-libvirt
extra_pkgs:
- libguestfs0
- libguestfs-tools
- gnutls-bin
- virt-top
daemon_config_path: /etc/default
...
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('osfinger') == Ubuntu-16.04.
# Setup variables specific to salt['config.get']('osfinger') == Debian-9.
# You just need to add the key:values for this `osfinger` that differ
# from `defaults.yaml`.
#
Expand All @@ -10,6 +10,7 @@
# values: {}
---
values:
libvirt_pkg: libvirt-bin
libvirt_service: libvirt-bin
extra_pkgs:
- gnutls-bin
qemu_pkg: qemu-kvm
...
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('osfinger') == Ubuntu-22.04.
# Setup variables specific to salt['config.get']('osfinger') == Ubuntu-18.04.
# You just need to add the key:values for this `osfinger` that differ
# from `defaults.yaml`.
#
Expand All @@ -10,5 +10,5 @@
# values: {}
---
values:
qemu_pkg: qemu-system-x86
qemu_pkg: qemu-kvm
...
14 changes: 14 additions & 0 deletions libvirt/parameters/osfinger/Ubuntu-20.04.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
#
# Setup variables specific to salt['config.get']('osfinger') == Ubuntu-20.04.
# You just need to add the key:values for this `osfinger` that differ
# from `defaults.yaml`.
#
# If you do not need to provide defaults via the `osfinger` config,
# you can remove this file or provide at least an empty dict, e.g.
# values: {}
---
values:
qemu_pkg: qemu-kvm
...
5 changes: 2 additions & 3 deletions test/integration/share/libraries/libvirt_packages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def build_default_packages
def build_debian_packages
{
'libvirt' => ['libvirt-daemon-system'],
'extra' => %w[libguestfs0 libguestfs-tools gnutls-bin virt-top],
'qemu' => ['qemu-system-x86'],
'extra' => %w[libguestfs0 libguestfs-tools gnutls-bin],
'python' => if inspec.salt_minion.python3?
['python3-libvirt']
else
Expand Down Expand Up @@ -134,8 +135,6 @@ def build_centos_packages

def build_ubuntu_packages
case inspec.system.platform[:release]
when /^22/
{ 'qemu' => ['qemu-system-x86'] }
when /^16/
{ 'libvirt' => ['libvirt-bin'] }
else
Expand Down

0 comments on commit a9cd134

Please # to comment.