test: use personal docker registry

This commit is contained in:
Adrien Waksberg 2024-05-08 11:24:01 +02:00
parent 09efb3115a
commit c47ba8133f
3 changed files with 20 additions and 16 deletions

View file

@ -9,6 +9,10 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
- add submode for inputs
### Changed
- test: use personal docker registry
### Fixed
- change apt key

View file

@ -1,19 +1,19 @@
# Ansible role: Telegraf
[![Version](https://img.shields.io/badge/latest_version-1.0.0-green.svg)](https://git.yaegashi.fr/nishiki/ansible-role-telegraf/releases)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://git.yaegashi.fr/nishiki/ansible-role-telegraf/src/branch/master/LICENSE)
[![Version](https://img.shields.io/badge/latest_version-1.0.0-green.svg)](https://code.waks.be/nishiki/ansible-role-telegraf/releases)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://code.waks.be/nishiki/ansible-role-telegraf/src/branch/main/LICENSE)
Install and configure Telegraf
## Requirements
* Ansible >= 2.9
* Debian
* Bookworm
- Ansible >= 2.9
- Debian
- Bookworm
## Role variables
* `telegraf_config` - hash with the general configuration (see [telegraf documentation](https://docs.influxdata.com/telegraf/latest/administration/configuration/))
- `telegraf_config` - hash with the general configuration (see [telegraf documentation](https://docs.influxdata.com/telegraf/latest/administration/configuration/))
```
agent:
@ -29,7 +29,7 @@ Install and configure Telegraf
omit_hostname: false
```
* `telegraf_inputs` - hash with inputs configuration
- `telegraf_inputs` - hash with inputs configuration
```
cpu:
@ -47,22 +47,22 @@ Install and configure Telegraf
tagvalue = ""
```
* `telegraf_outputs` - hash with outputs configuration
- `telegraf_outputs` - hash with outputs configuration
```
file:
files: ['stdout', '/tmp/metrics.out']
```
* `telegraf_user_groups` - array with the telegraf unix groups
- `telegraf_user_groups` - array with the telegraf unix groups
```
- docker
- admin
```
* `telegraf_proxy_url` - set a proxy url for http and https requests
* `telegraf_proxy_ignore` - array with ignore host or subnet
- `telegraf_proxy_url` - set a proxy url for http and https requests
- `telegraf_proxy_ignore` - array with ignore host or subnet
```
- localhost
@ -81,10 +81,10 @@ Install and configure Telegraf
### Test with molecule and docker
* install [docker](https://docs.docker.com/engine/installation/)
* install `python3` and `python3-pip`
* install molecule and dependencies `pip3 install molecule molecule-docker docker ansible-lint pytest-testinfra yamllint`
* run `molecule test`
- install [docker](https://docs.docker.com/engine/installation/)
- install `python3` and `python3-pip`
- install molecule and dependencies `pip3 install molecule molecule-docker docker ansible-lint pytest-testinfra yamllint`
- run `molecule test`
## License

View file

@ -3,7 +3,7 @@ driver:
name: docker
platforms:
- name: debian12
image: nishiki/debian12:molecule
image: code.waks.be/nishiki/molecule:debian12
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw