Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

influxdb (25) Versions 2.6.0

InfluxDB, a timeseries database

Berkshelf/Librarian
Policyfile
Knife
cookbook 'influxdb', '= 2.6.0'
cookbook 'influxdb', '= 2.6.0', :supermarket
knife cookbook site install influxdb
knife cookbook site download influxdb
README
Dependencies
Changelog
Quality 0%

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 ops@simple.com

Apache License, Version 2.0

Dependent cookbooks

chef_handler >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

CHANGELOG

2.6.0

  • Support for 0.9.x release of InfluxDB (contributed by @rberger)

2.5.0

  • Move influxdb resource actions to an attribute (contributed by @directionless)

2.4.0

  • Update default config for 0.8.5 and up (contributed by @tjwallace)

2.3.0

  • Update checksums for 0.8.6 (contributed by @tjwallace)

2.2.2

  • Touch logfile if it does not exist (contributed by @odolbeau)

2.2.1

  • Updated latest checksum to be accurate (contributed by @nomadium)

2.2.0

  • Added dbadmin parameter to influxdb_user, allowing granular control of which users are admins for which databases (contributed by @BarthV)

2.1.1

  • User and admin deletion now idempotent (contributed by @flowboard)

2.1.0

  • Multiple style and testing updates (contribued by @odolbeau)

2.0.4

  • Default logfile path is now the Debian package default (contributed by @masarakki)

2.0.3

  • Fixed typo in cluster admin check per InfluxDB 0.6.0 (contributed by @Chelo)

Foodcritic Metric
            

2.6.0 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/attributes/default.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/attributes/default.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/attributes/default.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/attributes/default.rb:31
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/attributes/default.rb:32
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/attributes/default.rb:33
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/attributes/default.rb:36
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/attributes/default.rb:37
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/attributes/default.rb:38
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/attributes/default.rb:39
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/attributes/default.rb:40
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/attributes/default.rb:49
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/attributes/default.rb:121
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/attributes/default.rb:205
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/attributes/default.rb:223
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/attributes/default.rb:243
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/providers/default.rb:72
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/recipes/client.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/recipes/default.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/recipes/default.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/recipes/default.rb:26
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/recipes/default.rb:29
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/recipes/default.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/recipes/default.rb:32
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/recipes/default.rb:33
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/recipes/default.rb:34
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/recipes/default.rb:37
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/recipes/default.rb:40
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/recipes/default.rb:48
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/recipes/default.rb:50
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/recipes/handler.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/847756c1f7140dd85d176975/influxdb/recipes/ruby_client.rb:23
FC017: LWRP does not notify when updated: /tmp/cook/847756c1f7140dd85d176975/influxdb/providers/admin.rb:31
FC017: LWRP does not notify when updated: /tmp/cook/847756c1f7140dd85d176975/influxdb/providers/admin.rb:41
FC017: LWRP does not notify when updated: /tmp/cook/847756c1f7140dd85d176975/influxdb/providers/admin.rb:49
FC017: LWRP does not notify when updated: /tmp/cook/847756c1f7140dd85d176975/influxdb/providers/database.rb:30
FC017: LWRP does not notify when updated: /tmp/cook/847756c1f7140dd85d176975/influxdb/providers/database.rb:36
FC017: LWRP does not notify when updated: /tmp/cook/847756c1f7140dd85d176975/influxdb/providers/default.rb:32
FC017: LWRP does not notify when updated: /tmp/cook/847756c1f7140dd85d176975/influxdb/providers/default.rb:39
FC017: LWRP does not notify when updated: /tmp/cook/847756c1f7140dd85d176975/influxdb/providers/user.rb:33
FC017: LWRP does not notify when updated: /tmp/cook/847756c1f7140dd85d176975/influxdb/providers/user.rb:56
FC017: LWRP does not notify when updated: /tmp/cook/847756c1f7140dd85d176975/influxdb/providers/user.rb:69
FC019: Access node attributes in a consistent manner: /tmp/cook/847756c1f7140dd85d176975/influxdb/providers/default.rb:47
FC019: Access node attributes in a consistent manner: /tmp/cook/847756c1f7140dd85d176975/influxdb/providers/default.rb:56
FC031: Cookbook without metadata file: /tmp/cook/847756c1f7140dd85d176975/influxdb/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/847756c1f7140dd85d176975/influxdb/metadata.rb:1