test: use personal docker registry

This commit is contained in:
Adrien Waksberg 2024-05-07 14:27:42 +02:00
parent 254eee34d1
commit 79b9bc5c00
3 changed files with 13 additions and 12 deletions

View file

@ -9,6 +9,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
- test: replace kitchen to molecule
- chore: replace apt_key to get_url
- test: use personal docker registry
### Removed

View file

@ -1,20 +1,20 @@
# Ansible role: filebeat
[![Version](https://img.shields.io/badge/latest_version-1.0.0-green.svg)](https://git.yaegashi.fr/nishiki/ansible-role-filebeat/releases)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://git.yaegashi.fr/nishiki/ansible-role-filebeat/src/branch/master/LICENSE)
[![Version](https://img.shields.io/badge/latest_version-1.0.0-green.svg)](https://code.waks.be/nishiki/ansible-role-filebeat/releases)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://code.waks.be/nishiki/ansible-role-filebeat/src/branch/main/LICENSE)
Install and configure filebeat
## Requirements
* Ansible >= 2.8
* Debian
* Bookworm
- Ansible >= 2.8
- Debian
- Bookworm
## Role variables
* `filebeat_major_version` set major version to install- (default: `7`)
* `filebeat_config` - hash with the configuration (see [filebeat documentation](https://www.elastic.co/guide/en/beats/filebeat/current/configuring-howto-filebeat.html))
- `filebeat_major_version` set major version to install- (default: `7`)
- `filebeat_config` - hash with the configuration (see [filebeat documentation](https://www.elastic.co/guide/en/beats/filebeat/current/configuring-howto-filebeat.html))
```
filebeat.inputs:
@ -39,10 +39,10 @@ Install and configure filebeat
### 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