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 - upgrade to influxdb 2
### Changed
- test: use personal docker registry
## [2.0.0] 2021-08-18 ## [2.0.0] 2021-08-18
### Break ### Break

View file

@ -1,15 +1,15 @@
# Ansible role: Influxdb # 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) [![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://git.yaegashi.fr/nishiki/ansible-role-influxdb/src/branch/master/LICENSE) [![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 Install and configure InfluxDB 2
## Requirements ## Requirements
* Ansible >= 2.10 - Ansible >= 2.10
* Debian - Debian
* Bookworm - Bookworm
## Role variables ## Role variables
@ -19,48 +19,48 @@ Install and configure InfluxDB 2
- `influxdb_api_token` - token to manage influxdb - `influxdb_api_token` - token to manage influxdb
- `influxdb_orgs` - hash with organizations - `influxdb_orgs` - hash with organizations
```yaml ```yaml
myorg: myorg:
description: it's a test description: it's a test
state: present state: present
``` ```
- `influxdb_buckets` - hash with the buckets - `influxdb_buckets` - hash with the buckets
```yaml ```yaml
mybucket: mybucket:
description: KFC description: KFC
retention: 3600 retention: 3600
org: neworg org: neworg
state: present state: present
``` ```
- `influxdb_users` - hash with the users - `influxdb_users` - hash with the users
```yaml ```yaml
myuser: myuser:
status: active status: active
state: present state: present
``` ```
- `influxdb_authorizations` - array with the authorizations - `influxdb_authorizations` - array with the authorizations
```yaml ```yaml
- user: myuser - user: myuser
description: write bucket description: write bucket
org: neworg org: neworg
status: active status: active
state: present state: present
permissions: permissions:
- action: write - action: write
resource: resource:
type: buckets type: buckets
org: myorg org: myorg
name: mybucket name: mybucket
- action: read - action: read
resource: resource:
type: buckets type: buckets
``` ```
## How to use ## How to use
@ -74,10 +74,10 @@ Install and configure InfluxDB 2
### 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-plugins[docker] ansible-lint pytest-testinfra yamllint` - install molecule and dependencies `pip3 install molecule molecule-plugins[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