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.
galaxy-influx.create.db/README.md

937 B

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