https://github.com/influxdata/ansible-kapacitor
Official Kapacitor Ansible Role for Linux
https://github.com/influxdata/ansible-kapacitor
Last synced: 3 months ago
JSON representation
Official Kapacitor Ansible Role for Linux
- Host: GitHub
- URL: https://github.com/influxdata/ansible-kapacitor
- Owner: influxdata
- License: mit
- Created: 2017-10-31T10:11:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-26T22:54:30.000Z (over 2 years ago)
- Last Synced: 2025-01-14T04:13:28.790Z (5 months ago)
- Language: Jinja
- Homepage: https://www.influxdata.com/time-series-platform/kapacitor/
- Size: 41 KB
- Stars: 7
- Watchers: 41
- Forks: 14
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Kapacitor
[](https://galaxy.ansible.com/influxdata/kapacitor/)
Configuration management and change automation for Kapacitor on Linux.
This role will:
* Install Kapacitor
* Generate and install configs
* Manage the Kapacitor service
* Upload any TICK scripts specified
* Manage any defined tasks## Installation
`$ ansible-galaxy install influxdata.kapacitor`
## Usage
Example playbook usage:
```
- 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
```See the `test/integration/ansible` for examples.
## Contributing
Clone this repository, hack and run tests with Kitchen. Then send us a pull-request!
```
$ bundle install
$ kitchen test
```