influxdata.kapacitor
Ansible Kapacitor
在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
安装
ansible-galaxy install influxdata.kapacitor
许可证
mit
下载
8.8k
拥有者