chore: remove support debian11

This commit is contained in:
Adrien Waksberg 2024-02-27 15:45:52 +01:00
parent a3138ac6ec
commit 09efb3115a
6 changed files with 15 additions and 22 deletions

View file

@ -13,6 +13,10 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
- change apt key
### Removed
- support debian 11
## v1.0.0 - 2021-08-20
### Added

View file

@ -9,12 +9,10 @@ Install and configure Telegraf
* Ansible >= 2.9
* Debian
* Bullseye
* Bookworm
## Role variables
* `telegraf_distribution_release` - set the distribution repository name (default: `ansible_distribution_release`)
* `telegraf_config` - hash with the general configuration (see [telegraf documentation](https://docs.influxdata.com/telegraf/latest/administration/configuration/))
```

View file

@ -1,5 +1,4 @@
---
telegraf_distribution_release: "{{ ansible_distribution_release }}"
telegraf_default_config:
agent:
interval: 10s

View file

@ -11,7 +11,6 @@ galaxy_info:
platforms:
- name: Debian
versions:
- bullseye
- bookworm
galaxy_tags:

View file

@ -11,20 +11,6 @@ platforms:
command: /bin/systemd
capabilities:
- SYS_ADMIN
- name: debian11
image: nishiki/debian11:molecule
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
command: /bin/systemd
capabilities:
- SYS_ADMIN
provisioner:
inventory:
host_vars:
debian12:
telegraf_distribution_release: bullseye
lint: |
set -e
yamllint .

View file

@ -6,15 +6,22 @@
- gpg
tags: telegraf
- name: Add key for influx repository
ansible.builtin.apt_key:
- name: Add repository key
ansible.builtin.get_url:
url: https://repos.influxdata.com/influxdata-archive_compat.key
dest: /etc/apt/keyrings/influx.asc
owner: root
group: root
mode: 0644
checksum: sha256:393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c
tags: telegraf
- name: Add influx repository
- name: Add repository
ansible.builtin.apt_repository:
repo: >
deb [signed-by=/etc/apt/keyrings/influx.asc]
https://repos.influxdata.com/debian stable main
filename: influx
repo: "deb https://repos.influxdata.com/debian {{ telegraf_distribution_release }} stable"
tags: telegraf
- name: Install influxdb package