influxdata.kapacitor

Ansible Kapacitor

Ansible Galaxy

Gestion de configuration et automatisation des changements pour Kapacitor sous Linux.

Ce rôle va :

  • Installer Kapacitor
  • Générer et installer des configurations
  • Gérer le service Kapacitor
  • Télécharger les scripts TICK spécifiés
  • Gérer toutes les tâches définies

Installation

$ ansible-galaxy install influxdata.kapacitor

Utilisation

Exemple d'utilisation de playbook :

- hosts: 'kapacitor'
  become: true
  roles:
      - 'kapacitor'
  vars:
    kapacitor_influx:
      - name: "production01"
        enabled: true
        default: true
        urls: ["https://influxdb.production01.megacorp.com:443"]
        username: "nom_utilisateur"
        password: "mot_de_passe"
        ssl-ca: ""
        ssl-cert: ""
        ssl-key: ""
        insecure-skip-verify: false
        timeout: "0s"
        disable-subscriptions: false
        subscription-protocol: "http"
        subscription-mode: "cluster"
        kapacitor-hostname: "{{ ansible_hostname }}"
        http-port: 0
        udp-bind: ""
        udp-buffer: 1000
        udp-read-buffer: 0
        startup-timeout: "5m0s"
        subscriptions-sync-interval: "1m0s"
    kapacitor_http_shared_secret: "topsecrettrèslong"
    kapacitor_tick_script_dir: '../../shared/files/tick'
    kapacitor_slack_enabled: true
    kapacitor_slack_url: "https://hooks.slack.com/services/XXX/ZZZ/SECRET"
    kapacitor_slack_channel: '#monitoring'
    kapacitor_slack_global: false
    kapacitor_slack_state_changes_only: false

Voir le dossier test/integration/ansible pour des exemples.

Contribution

Clonez ce dépôt, modifiez et exécutez des tests avec Kitchen. Ensuite, envoyez-nous une demande de tirage !

$ bundle install
$ kitchen test
À propos du projet

Kapacitor for Linux

Installer
ansible-galaxy install influxdata.kapacitor
Licence
mit
Téléchargements
8.8k
Propriétaire