Skip to content

Commit a9cd134

Browse files
committed
fix: correct package names for debian 11, drop support for debian 9
1 parent a0ae21c commit a9cd134

File tree

12 files changed

+27
-19
lines changed

12 files changed

+27
-19
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ rubocop:
144144
# default-oraclelinux-7-tiamat-py3: {extends: '.test_instance'}
145145
# default-almalinux-8-tiamat-py3: {extends: '.test_instance'}
146146
# default-rockylinux-8-tiamat-py3: {extends: '.test_instance'}
147-
# default-debian-11-master-py3: {extends: '.test_instance'}
147+
default-debian-11-master-py3: {extends: '.test_instance'}
148148
default-debian-10-master-py3: {extends: '.test_instance'}
149149
# clean-debian-10-master-py3: {extends: '.test_instance'}
150-
default-debian-9-master-py3: {extends: '.test_instance'}
150+
# default-debian-9-master-py3: {extends: '.test_instance'}
151151
default-ubuntu-2204-master-py3: {extends: '.test_instance_failure_permitted'}
152152
default-ubuntu-2004-master-py3: {extends: '.test_instance'}
153153
default-ubuntu-1804-master-py3: {extends: '.test_instance'}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ repos:
5353
always_run: true
5454
pass_filenames: false
5555
- repo: https://github.com/warpnet/salt-lint
56-
rev: v0.8.0
56+
rev: v0.9.2
5757
hooks:
5858
- id: salt-lint
5959
name: Check Salt files using salt-lint

libvirt/parameters/defaults.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ values:
1515
libvirt_pkg: libvirt
1616
qemu_pkg: qemu
1717
python2_pkg: libvirt-python
18-
python3_pkg: libvirt-python3
18+
python3_pkg: python3-libvirt
1919
libvirt_service: libvirtd
2020
libvirtd_config: /etc/libvirt/libvirtd.conf
2121
daemon_config_path: {}

libvirt/parameters/os/AlmaLinux.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@
1111
---
1212
values:
1313
python2_pkg: ~
14-
python3_pkg: python3-libvirt
1514
...

libvirt/parameters/os/CentOS.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@
1111
---
1212
values:
1313
python2_pkg: ~
14-
python3_pkg: python3-libvirt
1514
...

libvirt/parameters/os/Fedora.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@
1111
---
1212
values:
1313
python2_pkg: python2-libvirt
14-
python3_pkg: python3-libvirt
1514
...

libvirt/parameters/os/Rocky.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@
1111
---
1212
values:
1313
python2_pkg: ~
14-
python3_pkg: python3-libvirt
1514
...

libvirt/parameters/os_family/Debian.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212
values:
1313
libvirt_pkg: libvirt-daemon-system
1414
libvirt_service: libvirtd
15-
qemu_pkg: qemu-kvm
15+
qemu_pkg: qemu-system-x86
1616
python2_pkg: python-libvirt
17-
python3_pkg: python3-libvirt
1817
extra_pkgs:
1918
- libguestfs0
2019
- libguestfs-tools
2120
- gnutls-bin
22-
- virt-top
2321
daemon_config_path: /etc/default
2422
...
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
# vim: ft=yaml
33
#
4-
# Setup variables specific to salt['config.get']('osfinger') == Ubuntu-16.04.
4+
# Setup variables specific to salt['config.get']('osfinger') == Debian-9.
55
# You just need to add the key:values for this `osfinger` that differ
66
# from `defaults.yaml`.
77
#
@@ -10,6 +10,7 @@
1010
# values: {}
1111
---
1212
values:
13-
libvirt_pkg: libvirt-bin
14-
libvirt_service: libvirt-bin
13+
extra_pkgs:
14+
- gnutls-bin
15+
qemu_pkg: qemu-kvm
1516
...
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
# vim: ft=yaml
33
#
4-
# Setup variables specific to salt['config.get']('osfinger') == Ubuntu-22.04.
4+
# Setup variables specific to salt['config.get']('osfinger') == Ubuntu-18.04.
55
# You just need to add the key:values for this `osfinger` that differ
66
# from `defaults.yaml`.
77
#
@@ -10,5 +10,5 @@
1010
# values: {}
1111
---
1212
values:
13-
qemu_pkg: qemu-system-x86
13+
qemu_pkg: qemu-kvm
1414
...
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
3+
#
4+
# Setup variables specific to salt['config.get']('osfinger') == Ubuntu-20.04.
5+
# You just need to add the key:values for this `osfinger` that differ
6+
# from `defaults.yaml`.
7+
#
8+
# If you do not need to provide defaults via the `osfinger` config,
9+
# you can remove this file or provide at least an empty dict, e.g.
10+
# values: {}
11+
---
12+
values:
13+
qemu_pkg: qemu-kvm
14+
...

test/integration/share/libraries/libvirt_packages.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ def build_default_packages
7878
def build_debian_packages
7979
{
8080
'libvirt' => ['libvirt-daemon-system'],
81-
'extra' => %w[libguestfs0 libguestfs-tools gnutls-bin virt-top],
81+
'qemu' => ['qemu-system-x86'],
82+
'extra' => %w[libguestfs0 libguestfs-tools gnutls-bin],
8283
'python' => if inspec.salt_minion.python3?
8384
['python3-libvirt']
8485
else
@@ -134,8 +135,6 @@ def build_centos_packages
134135

135136
def build_ubuntu_packages
136137
case inspec.system.platform[:release]
137-
when /^22/
138-
{ 'qemu' => ['qemu-system-x86'] }
139138
when /^16/
140139
{ 'libvirt' => ['libvirt-bin'] }
141140
else

0 commit comments

Comments
 (0)