manala.influxdb

Ansible-Rolle: InfluxDB Bau-Status

:exclamation: Probleme melden und Pull Requests senden im Haupt-Repository der Ansible-Rollen :exclamation:

Diese Rolle kümmert sich um die Einrichtung von InfluxDB.

Sie ist Teil des Manala Ansible-Stacks, kann aber auch als eigenständige Komponente verwendet werden.

Anforderungen

Diese Rolle ist für die Verwendung mit den influxdata InfluxDB Debian-Paketen gedacht. Bitte verwenden Sie die manala.apt Rolle, um dies richtig zu handhaben.

manala_apt_preferences:
  - influxdb@influxdata

Abhängigkeiten

Keine.

Unterstützte InfluxDB-Versionen

0.13.0+

Installation

Ansible 2+

Verwendung des Ansible Galaxy CLI:

ansible-galaxy install manala.influxdb

Verwendung einer Ansible Galaxy-Anforderungsdatei:

- src: manala.influxdb

Rollen-Handler

Name Typ Beschreibung
influxdb restart Dienst Startet den InfluxDB-Server neu

Rollen-Variablen

Name Standard Typ Beschreibung
manala_influxdb_install_packages ~ Array Abhängigkeitspakete zur Installation
manala_influxdb_install_packages_default ['influxdb'] Array Standard-Abhängigkeitspakete
manala_influxdb_dir [] Array Verzeichnisse, die von InfluxDB verwendet werden
manala_influxdb_databases [] Array Datenbanken
manala_influxdb_users [] Array Benutzer
manala_influxdb_privileges [] Array Berechtigungen
manala_influxdb_config ~ Array/String Konfiguration
manala_influxdb_config_file '/etc/influxdb/influxdb.conf' String Pfad zur Konfigurationsdatei
manala_influxdb_config_template 'config/base.conf.j2' String Pfad zur Konfigurationstem Vorlage

Konfigurationsbeispiel

Verwenden Sie die Standard-Konfigurationstem Vorlage von Influxdata (empfohlen):

manala_influxdb_config_template: config/influxdata/influxdb.conf.j2
manala_influxdb_config:
  reporting-disabled: true
  meta:
    dir: /srv/db/influxdb/meta
  http:
    enabled: true
  udp:
    - enabled: true
      bind-address: :8090
      database: app

Verwenden Sie Parameter im Dictionary-Format:

manala_influxdb_config:
  reporting-disabled: true
  meta:
    dir: /srv/db/influxdb/meta
  http:
    enabled: true
  udp:
    - enabled: true
      bind-address: :8090
      database: app

Verwenden Sie die rohe Konfiguration:

manala_influxdb_config: |
  reporting-disabled = true
  [meta]
    dir = "/srv/db/influxdb/meta"
  [http]
    enabled = true
  [[udp]]
    enabled = true
    bind-address = ":8090"
    database = "app"

Verwenden Sie Parameter mit Array im Dictionary-Format (veraltet):

manala_influxdb_config:
  - reporting-disabled: true
  - meta:
    - dir: /srv/db/influxdb/meta
  - http:
    - enabled: true
  - udp:
    - enabled: true
    - bind-address: :8090
    - database: app

Datenbanken & Benutzer & Berechtigungen:

manala_influxdb_databases:
  - my_db
manala_influxdb_users:
  - database: my_db
    name: my_user
    password: my_password
manala_influxdb_privileges:
  - database: my_db
    user: my_user
    grant: ALL

Siehe die InfluxDB-Dokumentation für weitere Informationen zu Datenbanken, Benutzern und Berechtigungen

Beispiel-Playbook

- hosts: servers
  roles:
    - role: manala.influxdb

Lizenz

MIT

Autoreninformation

Manala (http://www.manala.io/)

Über das Projekt

Install and configure InfluxDB

Installieren
ansible-galaxy install manala.influxdb
Lizenz
Unknown
Downloads
71.2k
Besitzer
Manala is an open source project supported by the french web agency ELAO providing advanced ansible roles for website's infrastructures and far more.