boutetnico.influxdb

tests Ansible Galaxy

ansible-role-influxdb

Ce rôle installe et configure InfluxDB.

Exigences

Ansible 2.10 ou version plus récente.

Plateformes Supportées

Variables du Rôle

Variable Requis Par Défaut Choix Commentaires
influxdb_dependencies oui [apt-transport-https,curl,gnupg] liste
influxdb_package_state oui present chaîne Utilisez latest pour une mise à jour.
influxdb_host oui http://localhost:8086 chaîne
influxdb_config_path oui /etc/influxdb chaîne
influxdb_bolt_path oui /var/lib/influxdb/influxd.bolt chaîne
influxdb_engine_path oui /var/lib/influxdb/engine chaîne
influxdb_config oui {} dict Objet principal de configuration.
influxdb_primary_org oui example-org chaîne Nom de l'organisation principale.
influxdb_primary_bucket oui example-bucket chaîne Nom du seau principal.
influxdb_primary_username oui example-user chaîne Nom d'utilisateur principal.
influxdb_primary_password oui ExAmPl3PA55W0rD chaîne Mot de passe pour l'utilisateur principal.
influxdb_admin_token oui EXAMPLE-TOKEN chaîne Token pour l'utilisateur admin.
influxdb_orgs oui [] liste Organisations supplémentaires à créer.
influxdb_users oui [] liste Utilisateurs supplémentaires à créer.
influxdb_buckets oui [] liste Seaux supplémentaires à créer.
influxdb_service_enabled oui true booléen Démarrer InfluxDB au démarrage.
influxdb_service_state oui started booléen Utilisez started ou stopped.

Dépendances

Aucune

Exemple de Playbook

- hosts: all
  roles:
    - role: ansible-role-influxdb

      influxdb_orgs:
        - name: main-org
          description: Organisation principale
        - name: guest-org

      influxdb_users:
        - name: admin01
          org: main-org
          password: secretPassword
        - name: guest01
          org: guest-org
          password: secretPassword

      influxdb_buckets:
        - name: bucket01
          description: Premier seau
          org: main-org
          retention: 1d
        - name: bucket02
          org: main-org

Tests

molecule test --all

Licence

MIT

Informations sur l'Auteur

@boutetnico

À propos du projet

Install and configure InfluxDB.

Installer
ansible-galaxy install boutetnico.influxdb
Licence
mit
Téléchargements
5.2k
Propriétaire
System Engineer