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 ## Unreleased
### Added
- test: add support debian 12
### Removed
- test: remove support debian 10
## v1.1.0 - 2021-08-24 ## v1.1.0 - 2021-08-24
### Added ### Added

View file

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

View file

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

View file

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

View file

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