influxdata.kapacitor
Ansible Kapacitor
Manage and automate changes for Kapacitor on Linux.
This role will:
- Install Kapacitor
- Create and install configuration files
- Control the Kapacitor service
- Upload specified TICK scripts
- Handle defined tasks
Installation
Run the following command to install:
$ ansible-galaxy install influxdata.kapacitor
Usage
Here’s how to use it in a playbook:
- 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
Check the test/integration/ansible
for more examples.
Contributing
To contribute, clone this repository, make your changes, and run tests with Kitchen. After that, send us a pull request!
$ bundle install
$ kitchen test
Installa
ansible-galaxy install influxdata.kapacitor
Licenza
mit
Download
8.8k
Proprietario