test: use personal docker registry

This commit is contained in:
Adrien Waksberg 2024-05-08 10:24:31 +02:00
parent af0ceb440d
commit fb6e522c98
3 changed files with 47 additions and 43 deletions

View file

@ -9,6 +9,10 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
- upgrade to influxdb 2
### Changed
- test: use personal docker registry
## [2.0.0] 2021-08-18
### Break

View file

@ -1,15 +1,15 @@
# Ansible role: Influxdb
[![Version](https://img.shields.io/badge/latest_version-2.0.0-green.svg)](https://git.yaegashi.fr/nishiki/ansible-role-influxdb/releases)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://git.yaegashi.fr/nishiki/ansible-role-influxdb/src/branch/master/LICENSE)
[![Version](https://img.shields.io/badge/latest_version-2.0.0-green.svg)](https://code.waks.be/nishiki/ansible-role-influxdb/releases)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://code.waks.be/nishiki/ansible-role-influxdb/src/branch/main/LICENSE)
Install and configure InfluxDB 2
## Requirements
* Ansible >= 2.10
* Debian
* Bookworm
- Ansible >= 2.10
- Debian
- Bookworm
## Role variables
@ -19,48 +19,48 @@ Install and configure InfluxDB 2
- `influxdb_api_token` - token to manage influxdb
- `influxdb_orgs` - hash with organizations
```yaml
myorg:
description: it's a test
state: present
```
```yaml
myorg:
description: it's a test
state: present
```
- `influxdb_buckets` - hash with the buckets
```yaml
mybucket:
description: KFC
retention: 3600
org: neworg
state: present
```
```yaml
mybucket:
description: KFC
retention: 3600
org: neworg
state: present
```
- `influxdb_users` - hash with the users
```yaml
myuser:
status: active
state: present
```
```yaml
myuser:
status: active
state: present
```
- `influxdb_authorizations` - array with the authorizations
```yaml
- user: myuser
description: write bucket
org: neworg
status: active
state: present
permissions:
- action: write
resource:
type: buckets
org: myorg
name: mybucket
- action: read
resource:
type: buckets
```
```yaml
- user: myuser
description: write bucket
org: neworg
status: active
state: present
permissions:
- action: write
resource:
type: buckets
org: myorg
name: mybucket
- action: read
resource:
type: buckets
```
## How to use
@ -74,10 +74,10 @@ Install and configure InfluxDB 2
### 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-plugins[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-plugins[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