项目作者: influxdata

项目描述 :
Ansible role for deploying InfluxDB Enterprise.
高级语言:
项目地址: git://github.com/influxdata/ansible-influxdb-enterprise.git
创建时间: 2016-07-14T19:53:54Z
项目社区:https://github.com/influxdata/ansible-influxdb-enterprise

开源协议:MIT License

下载


InfluxDB Enterprise

This role will install an InfluxDB Enterprise cluster. Both meta and data nodes.

Usage

Add the following to your requirements.yml:

  1. - src: influxdata.influxdb-enterprise
  2. name: influxdb-enterprise

Install to your roles directory:

$ ansible-galaxy install -r requirements.yaml

Include in your Playbooks (see this example for a more detailed usage):

  1. ---
  2. # site.yml
  3. - hosts: influxdb
  4. become: yes
  5. roles:
  6. - { role: 'influxdb-enterprise', influx_node_type: meta }
  7. - { role: 'influxdb-enterprise', influx_node_type: data }
  8. vars:
  9. influx_cluster_auto_join: true
  10. influx_meta_cluster_leader: influxdb_001
  11. influx_enterprise_license_key: XXX-XXX-XXX
  12. influx_queries:
  13. - "CREATE DATABASE test"
  14. - "CREATE RETENTION POLICY testrp ON test DURATION 24h REPLICATION 2 default"
  15. - "ALTER RETENTION POLICY autogen ON test DURATION 666h REPLICATION 2 default"

Note: When bringing up the cluster for the first time, it’s a good idea to use --skip-tags=influxdb-cluster, this ensures all hosts are up before establishing a cluster. It’s also wise to run against the first meta-node first using the --limit option. We’ll improve this in the future.

Prerequisites

  • InfluxDB Enterprise License Key, a free trial can be obtained here
  • Ansible, see getting started for more information.
  • Vagrant (for testing and evaluation only)

Contributing

Pull requests welcome!

A full test suite can be executed using via the following commands.

  1. $ export INFLUX_ENTERPRISE_LICENSE_KEY=XXX-XXX-XXX
  2. $ vagrant up
  3. $ ansible-playbook tests/cluster.yml -vvvv