Coder Social home page Coder Social logo

ansible-role-influxdb's Introduction

ansible-role-influxdb

๐Ÿš€ Install and configure InfluxDB 2.0 using Ansible. ๐Ÿš€

https://github.com/coding-to-music/ansible-role-influxdb

From / By https://github.com/boutetnico/ansible-role-influxdb

GitHub

git init
git add .
git remote remove origin
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:coding-to-music/ansible-role-influxdb.git
git push -u origin main

How to run

create an inventory file similar to inventory.sample

# if username on the control node is the SAME on the managed nodes
ansible myhosts -m ping -i inventory

# if username on the control node is different from the managed nodes
ansible myhosts -m ping -i inventory -u root --ask-pass

tests Ansible Galaxy

ansible-role-influxdb

This role installs and configures InfluxDB.

Requirements

Ansible 2.10 or newer.

Supported Platforms

Role Variables

Variable Required Default Choices Comments
influxdb_dependencies yes [apt-transport-https,curl,gnupg] list
influxdb_package_state yes present string Use latest to upgrade.
influxdb_host yes http://localhost:8086 string
influxdb_config_path yes /etc/influxdb string
influxdb_bolt_path yes /var/lib/influxdb/influxd.bolt string
influxdb_engine_path yes /var/lib/influxdb/engine string
influxdb_config yes {} dict Main configuration object.
influxdb_primary_org yes example-org string Primary organization name.
influxdb_primary_bucket yes example-bucket string Primary bucket name.
influxdb_primary_username yes example-user string Primary username.
influxdb_primary_password yes ExAmPl3PA55W0rD string Password for primary user.
influxdb_admin_token yes EXAMPLE-TOKEN string Token for admin user.
influxdb_orgs yes [] list Additional orgs to create.
influxdb_users yes [] list Additional users to create.
influxdb_buckets yes [] list Additional buckets to create.
influxdb_service_enabled yes true bool Start InfluxDB at boot.
influxdb_service_state yes started bool Use started or stopped.

Dependencies

None

Example Playbook

- hosts: all
  roles:
    - role: ansible-role-influxdb

      influxdb_orgs:
        - name: main-org
          description: Main organization
        - name: guest-org

      influxdb_users:
        - name: admin01
          org: main-org
          password: secretPassword
        - name: guest01
          org: guest-org
          password: secretPassword

      influxdb_buckets:
        - name: bucket01
          description: First bucket
          org: main-org
          retention: 1d
        - name: bucket02
          org: main-org

Testing

molecule test --all

License

MIT

Author Information

@boutetnico

ansible-role-influxdb's People

Contributors

boutetnico avatar coding-to-music avatar michaelbaisch avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.