Git Product home page Git Product logo

chef-influxdb's Introduction

InfluxDB

Chef cookbook to install and configure InfluxDB.

Now supports Influxdb versions before and after 0.9.x

Usage and Resources

The InfluxDB cookbook comes with a Vagrantfile. Test using vagrant up. Simply running the default recipe should be sufficient. Real tests coming soon!

For rendering the config

  • For Influxdb versions before 0.9.x:
    set the parameter under node[:influxdb][:config]
  • For versions 0.9.x and greater: set the parameter under node[:influxdb][:zero_nine][:config]

default[:influxdb][:config]['MyParameter'] = 'val'

The following gems are used by the InfluxDB::Helpers module:

This cookbook ships with three LWRPs for managing the install, users, and databases:

influxdb

This resource installs and configures InfluxDB based on node[:influxdb][:config]:

influxdb 'main' do
  source node[:influxdb][:source]
  checksum node[:influxdb][:checksum]
  config node[:influxdb][:config] # Or if >=  0.9.x it will use node[:influxdb][:zero_nine][:config]
  action :create
end

The checksum and config parameters are optional.

influxdb_database

Configures an InfluxDB database.

influxdb_database 'my_db' do
  action :create
end

influxdb_user

Configures a user to interact with InfluxDB databases.

influxdb_user 'user' do
  password 'changeme'
  databases ['my_db']
  action :create
end

influxdb_admin

Configures a cluster admin to interact with InfluxDB.

influxdb_admin 'admin' do
  password 'changeme'
  action :create
end

Client Libraries

Right now, this cookbook only supports the Ruby and CLI client libraries so as not to add too many dependencies. That might change in the near future. By default both flavors are disabled. Enable e.g. Ruby via:

node.default[:influxdb][:client][:ruby][:enable] = true

Tests

To run tests, install all dependencies with bundler:

bundle install

Then to run tests:

rake # Quick tests only (rubocop + minitest)
rake test:complete # All tests (rubocop + minitest + kitchen)

Author and License

Simple Finance [email protected]

Apache License, Version 2.0

chef-influxdb's People

Contributors

jakedavis avatar miah avatar odolbeau avatar rberger avatar tjwallace avatar lusis avatar rsr5 avatar ctrlok avatar wosc avatar barthv avatar chelo avatar kri5 avatar gkope avatar marcogallotta avatar nomadium avatar phungleson avatar directionless 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.