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 888ea3032e Move LICENSE file 2019-07-25 20:33:35 +02:00
defaults Bootstrap influx.create.db role 2019-07-10 17:11:05 +02:00
meta Bootstrap influx.create.db role 2019-07-10 17:11:05 +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 Bootstrap influx.create.db role 2019-07-10 17:11:05 +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

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- 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