influxdata.kapacitor

Ansible Kapacitor

Ansible Galaxy

Linux上のKapacitorのための構成管理と変更自動化。

このロールは以下を行います:

  • Kapacitorのインストール
  • 設定の生成とインストール
  • Kapacitorサービスの管理
  • 指定されたTICKスクリプトのアップロード
  • 定義されたタスクの管理

インストール

$ ansible-galaxy install influxdata.kapacitor

使用方法

例となるプレイブックの使い方:

- hosts: 'kapacitor'
  become: true
  roles:
      - 'kapacitor'
  vars:
    kapacitor_influx:
      - name: "production01"
        enabled: true
        default: true
        urls: ["https://influxdb.production01.megacorp.com:443"]
        username: "username"
        password: "password"
        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: "topsecretsuperlong"
    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

例については、test/integration/ansibleを参照してください。

貢献

このリポジトリをクローンして、ハッキングし、Kitchenでテストを実行してください。そして、プルリクエストを送信してください!

$ bundle install
$ kitchen test
プロジェクトについて

Kapacitor for Linux

インストール
ansible-galaxy install influxdata.kapacitor
ライセンス
mit
ダウンロード
8.8k
所有者