Galaxy role to create InfluxDB database and user
This repository has been archived on 2020-07-02. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Wilfried OLLIVIER b2228d198b Remove useless sentence in README example 2020-07-02 10:03:00 +02:00
defaults Fix: Harmonize files by adding new line if nedded 2020-04-03 11:37:32 +02:00
meta Fix: Harmonize files by adding new line if nedded 2020-04-03 11:37:32 +02:00
tasks Bootstrap influx.create.db role 2019-07-10 17:11:05 +02:00
tests Bootstrap influx.create.db role 2019-07-10 17:11:05 +02:00
LICENSE Move LICENSE file 2019-07-25 20:33:35 +02:00
README.md Remove useless sentence in README example 2020-07-02 10:03:00 +02:00

README.md

galaxy-influx.create.db

Galaxy role to create InfluxDB database and user

Requirements

InfluxDB service up and running

Role Variables

  • db_name: name of the db to create
  • user_name: name of the user to create
  • user_pass: user password
  • admin_user: name of admin user
  • admin_pass: password of admin user
  • is_admin: true/false, to enable admin mode or not
  • priv: READ/WRITE/ALL, to setup database priv of user_name on db_name
  • policy_name: name of the retention policy to apply
  • policy_duration: duration of the retention policy to apply
  • policy_replication: policy replication

Dependencies

  • galaxy-influx

Example Playbook

- hosts: servers
  roles:
     - role: galaxy-influx.create.db

Run tests

Needs galaxy-vagrant to run tests

Ensure galaxy-vagrant is up

ansible-playbook -i tests/inventory tests/test.yml