Skip to content

ansiblebit/influxdb

Repository files navigation

InfluxDB

License Build Status

Platform Platform

Project Stats

Ansible role to setup InfluxDB.

Tests

Family Distribution Version Test Status
Debian Debian Jessie x86_64
Debian Debian Wheezy x86_64
Debian Ubuntu Xenial x86_64
Debian Ubuntu Trusty x86_64
Debian Ubuntu Precise x86_64
Debian Ubuntu Vivid x86_64

Requirements

  • ansible >= 1.9.6

Role Variables

  • influxdb_apt_dependencies: packages needed to be able to run this playbook or install InfluxDB.
  • influxdb_configuration: the contents of the InfluxDB configuration file.
  • influxdb_conf_file: the location where the InfluxDB is located.
  • influxdb_group: the InfluxDB group.
  • influxdb_http_port: the port where the InfluxDB HTTP API will be running.
  • influxdb_ifql_port: the port where the InfluxDB ifql RPC service will be running.
  • influxdb_rpc_port: the port where the InfluxDB RPC service will be running.
  • influxdb_udp_port: the port where the InfluxDB UDP listener will be running.
  • influxdb_user: the InfluxDB user.
  • influxdb_version: the InfluxDB version to be installed.

Unless stated otherwise a default value is provided for each of the variables mentioned above in the defaults directory.

Dependencies

None.

Playbooks

- hosts: servers
  roles:
     - role: ansiblebit.influxdb

Tags

  • configuration: configuration tasks.
  • debug: task to debug role variables.
  • installation: installation tasks.
  • validation: task to validate role variables.

Test

To run the tests you will need to install:

To run all tests against all pre-defined OS/distributions * ansible versions:

tox

To run tests for trusty64:

$ cd tests
$ bash test_idempotence.sh --box trusty64.vagrant.dev
# log file will be stores under tests/log

To perform debugging on a specific environment:

$ cd tests
$ vagrant up trusty64.vagrant.dev

# to provision using the test.yml playbook (as many time as you need)
$ vagrant provision trusty64.vagrant.dev

# to access the Vagrant box
$ vagrant ssh trusty64.vagrant.dev

Links