Skip to content

AutomationD/ansible-influxdb-enterprise

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InfluxDB Enterprise

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

Usage

Add the following to your requirements.yml:

- src: influxdata.influxdb-enterprise
  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):

---
# site.yml

- hosts: influxdb
  become: yes

  roles:
  - { role: 'influxdb-enterprise', influx_node_type: meta }
  - { role: 'influxdb-enterprise', influx_node_type: data }

  vars:
  influx_cluster_auto_join: true
  influx_meta_cluster_leader: influxdb_001
  influx_enterprise_license_key: XXX-XXX-XXX
  influx_queries:
    - "CREATE DATABASE test"
    - "CREATE RETENTION POLICY testrp ON test DURATION 24h REPLICATION 2 default"
    - "ALTER RETENTION POLICY autogen ON test DURATION 666h REPLICATION 2 default"

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.

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

About

Ansible role for deploying InfluxDB Enterprise.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published