From c47ba8133fa5d432618bdb89753deffe8ead0df8 Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Wed, 8 May 2024 11:24:01 +0200 Subject: [PATCH] test: use personal docker registry --- CHANGELOG.md | 4 ++++ README.md | 30 +++++++++++++++--------------- molecule/default/molecule.yml | 2 +- 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 459710b..777c208 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 2c65c3d..47eb69f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 89bf10a..e73cc9e 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -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