boutetnico.influxdb
ansible-role-influxdb
Diese Rolle installiert und konfiguriert InfluxDB.
Anforderungen
Ansible 2.10 oder neuer.
Unterstützte Plattformen
- Debian - 11 (Bullseye)
- Debian - 12 (Bookworm)
- Ubuntu - 20.04 (Focal Fossa)
- Ubuntu - 22.04 (Jammy Jellyfish)
Rollenvariablen
Variable | erforderlich | Standard | Auswahl | Kommentare |
---|---|---|---|---|
influxdb_dependencies | ja | [apt-transport-https,curl,gnupg] |
Liste | |
influxdb_package_state | ja | present |
Zeichenkette | Verwenden Sie latest , um zu aktualisieren. |
influxdb_host | ja | http://localhost:8086 |
Zeichenkette | |
influxdb_config_path | ja | /etc/influxdb |
Zeichenkette | |
influxdb_bolt_path | ja | /var/lib/influxdb/influxd.bolt |
Zeichenkette | |
influxdb_engine_path | ja | /var/lib/influxdb/engine |
Zeichenkette | |
influxdb_config | ja | {} |
dict | Hauptkonfigurationsobjekt. |
influxdb_primary_org | ja | example-org |
Zeichenkette | Hauptorganisationsname. |
influxdb_primary_bucket | ja | example-bucket |
Zeichenkette | Hauptbucketsname. |
influxdb_primary_username | ja | example-user |
Zeichenkette | Hauptbenutzername. |
influxdb_primary_password | ja | ExAmPl3PA55W0rD |
Zeichenkette | Passwort für Hauptbenutzer. |
influxdb_admin_token | ja | EXAMPLE-TOKEN |
Zeichenkette | Token für Administrator. |
influxdb_orgs | ja | [] |
Liste | Zusätzliche Organisationen erstellen. |
influxdb_users | ja | [] |
Liste | Zusätzliche Benutzer erstellen. |
influxdb_buckets | ja | [] |
Liste | Zusätzliche Buckets erstellen. |
influxdb_service_enabled | ja | true |
bool | InfluxDB beim Booten starten. |
influxdb_service_state | ja | started |
bool | Verwenden Sie started oder stopped . |
Abhängigkeiten
Keine
Beispiel-Playbook
- hosts: all
roles:
- role: ansible-role-influxdb
influxdb_orgs:
- name: main-org
description: Hauptorganisation
- name: guest-org
influxdb_users:
- name: admin01
org: main-org
password: geheimPasswort
- name: guest01
org: guest-org
password: geheimPasswort
influxdb_buckets:
- name: bucket01
description: Erster Bucket
org: main-org
retention: 1d
- name: bucket02
org: main-org
Tests
molecule test --all
Lizenz
MIT
Autoreninformationen
Installieren
ansible-galaxy install boutetnico.influxdb
Lizenz
mit
Downloads
5.2k
Besitzer
System Engineer