feat: add debian 12 support

This commit is contained in:
Adrien Waksberg 2023-07-05 10:33:28 +02:00
parent be6a898249
commit e0ba01f338
5 changed files with 18 additions and 8 deletions

View file

@ -5,6 +5,14 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
## Unreleased
### Added
- test: add support debian 12
### Removed
- test: remove support debian 10
## v1.1.0 - 2021-08-24
### Added

View file

@ -9,8 +9,8 @@ Install and configure logstash
* Ansible >= 2.9
* Debian
* Buster
* Bullseye
* Bookworm
## Role variables

View file

@ -6,13 +6,13 @@ galaxy_info:
company: Adrien Waksberg
description: Install and configure logstash
license: Apache2
min_ansible_version: 2.9
min_ansible_version: "2.9"
platforms:
- name: Debian
versions:
- buster
- bullseye
- bookworm
galaxy_tags:
- elk

View file

@ -2,11 +2,12 @@
driver:
name: docker
platforms:
- name: debian10
image: nishiki/debian10:molecule
- name: debian12
image: nishiki/debian12:molecule
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
command: /bin/systemd
capabilities:
- SYS_ADMIN
@ -14,7 +15,8 @@ platforms:
image: nishiki/debian11:molecule
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
command: /bin/systemd
capabilities:
- SYS_ADMIN

View file

@ -39,7 +39,7 @@ def test_service(host):
def test_output(host):
time.sleep(20)
host.run('echo test >> /var/log/syslog')
time.sleep(10)
time.sleep(20)
path = host.file('/tmp/logstash.log')
assert path.exists
assert path.is_file