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 - add submode for inputs
### Changed
- test: use personal docker registry
### Fixed ### Fixed
- change apt key - change apt key

View file

@ -1,19 +1,19 @@
# Ansible role: Telegraf # 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) [![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://git.yaegashi.fr/nishiki/ansible-role-telegraf/src/branch/master/LICENSE) [![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 Install and configure Telegraf
## Requirements ## Requirements
* Ansible >= 2.9 - Ansible >= 2.9
* Debian - Debian
* Bookworm - Bookworm
## Role variables ## 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: agent:
@ -29,7 +29,7 @@ Install and configure Telegraf
omit_hostname: false omit_hostname: false
``` ```
* `telegraf_inputs` - hash with inputs configuration - `telegraf_inputs` - hash with inputs configuration
``` ```
cpu: cpu:
@ -47,22 +47,22 @@ Install and configure Telegraf
tagvalue = "" tagvalue = ""
``` ```
* `telegraf_outputs` - hash with outputs configuration - `telegraf_outputs` - hash with outputs configuration
``` ```
file: file:
files: ['stdout', '/tmp/metrics.out'] files: ['stdout', '/tmp/metrics.out']
``` ```
* `telegraf_user_groups` - array with the telegraf unix groups - `telegraf_user_groups` - array with the telegraf unix groups
``` ```
- docker - docker
- admin - admin
``` ```
* `telegraf_proxy_url` - set a proxy url for http and https requests - `telegraf_proxy_url` - set a proxy url for http and https requests
* `telegraf_proxy_ignore` - array with ignore host or subnet - `telegraf_proxy_ignore` - array with ignore host or subnet
``` ```
- localhost - localhost
@ -81,10 +81,10 @@ Install and configure Telegraf
### Test with molecule and docker ### Test with molecule and docker
* install [docker](https://docs.docker.com/engine/installation/) - install [docker](https://docs.docker.com/engine/installation/)
* install `python3` and `python3-pip` - install `python3` and `python3-pip`
* install molecule and dependencies `pip3 install molecule molecule-docker docker ansible-lint pytest-testinfra yamllint` - install molecule and dependencies `pip3 install molecule molecule-docker docker ansible-lint pytest-testinfra yamllint`
* run `molecule test` - run `molecule test`
## License ## License

View file

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