{"id":13530751,"url":"https://github.com/bdangit/chef-influxdb","last_synced_at":"2025-08-22T01:10:54.456Z","repository":{"id":11803551,"uuid":"14350325","full_name":"bdangit/chef-influxdb","owner":"bdangit","description":"A cookbook for InfluxDB, a time-series database (influxdb.org)","archived":false,"fork":false,"pushed_at":"2022-05-16T14:43:23.000Z","size":253,"stargazers_count":53,"open_issues_count":8,"forks_count":81,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-30T08:48:34.964Z","etag":null,"topics":["chef-cookbook","cookbooks","database","influxdb","infrastructure-management","monitoring"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bdangit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-13T01:21:25.000Z","updated_at":"2025-03-02T16:35:47.000Z","dependencies_parsed_at":"2022-09-23T02:13:20.669Z","dependency_job_id":null,"html_url":"https://github.com/bdangit/chef-influxdb","commit_stats":null,"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/bdangit/chef-influxdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdangit%2Fchef-influxdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdangit%2Fchef-influxdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdangit%2Fchef-influxdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdangit%2Fchef-influxdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bdangit","download_url":"https://codeload.github.com/bdangit/chef-influxdb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdangit%2Fchef-influxdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271569756,"owners_count":24782477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chef-cookbook","cookbooks","database","influxdb","infrastructure-management","monitoring"],"created_at":"2024-08-01T07:00:54.665Z","updated_at":"2025-08-22T01:10:54.430Z","avatar_url":"https://github.com/bdangit.png","language":"Ruby","funding_links":[],"categories":["Provisioning InfluxDB"],"sub_categories":["Other tools"],"readme":"# InfluxDB\n\n[![wercker status](https://app.wercker.com/status/d0f175cb46e417cde7974f179e63084d/s/master \"wercker status\")](https://app.wercker.com/project/byKey/d0f175cb46e417cde7974f179e63084d)\n\nChef cookbook to install and configure InfluxDB.\n\n## Support\n\n|*Cookbook Version*|*InfluxDB Version*|\n|------------------|------------------|\n| v5.x.x           | \u003e= v1.0.0        |\n| v4.4.1           | \u003c v1.0.0         |\n\n## Usage\nTo install InfluxDB and place its configuration file, include the\n`influxdb::default` recipe in your node's `run_list`. The `default` recipe\ninstalls the necessary dependencies to use the custom resources defined in this\ncookbook.\n\nFor rendering the config set the parameter under\n`node['influxdb']['config']`\n\n`default['influxdb']['config']['MyParameter'] = 'val'`\n\n## Resources\nThe following gems are used by the custom resources and are installed by the\n`default` recipe:\n\n - [InfluxDB gem](https://github.com/influxdb/influxdb-ruby)\n - [toml](https://github.com/jm/toml)\n\nThis cookbook ships with five custom resources for managing the configuration\nfile, users, databases, cluster admins, and retention policies:\n\n### influxdb\\_config\nThis resource writes a configuration file for InfluxDB based on the passed\nconfiguration hash:\n\n```ruby\ninfluxdb_config node['influxdb']['config_file_path'] do\n  config node['influxdb']['config']\n  action :create\nend\n```\n\nThis resource is used by the `default` recipe to place the configuration\ndefined in `node['influxdb']['config']`.\n\n### influxdb\\_database\nConfigures an InfluxDB database.\n\n```ruby\ninfluxdb_database 'my_db' do\n  action :create\nend\n```\n\n### influxdb\\_install\nThis resource sets up or removes the appropriate repositories and\ninstalls/removes the appropriate packages\n\n```ruby\ninfluxdb_install 'influxdb' do\n  arch_type 'amd64' # if undefined will auto detect\n  include_repository true # default\n  influxdb_key 'https://repos.influxdata.com/influxdb.key' # default\n  action :install # default\nend\n```\n\n```ruby\ninfluxdb_install 'influxdb' do\n  action :remove\nend\n```\n\n\u003e Note : InfluxDB Enterprise uses different version naming schema and is \n\u003e distributed in two packages: `influxdb-data` and `influxdb-meta`.\n\u003e Install it this way:\n\n```ruby\nnode.default['influxdb']['version'] = \"1.3.5-c1.3.5\"\nnode.default['influxdb']['download_urls'] = {\n  'debian' =\u003e 'https://dl.influxdata.com/enterprise/releases',\n  'rhel' =\u003e 'https://dl.influxdata.com/enterprise/releases'\n}\n\ninfluxdb_install 'influxdb-meta' do\n  install_version node['influxdb']['version']\n  install_type 'file'\n  checksum '87d99ba4a90487ee1a9'\n  action [:install]\nend\n\ninfluxdb_install 'influxdb-data' do\n  install_version node['influxdb']['version']\n  install_type 'file'\n  checksum '4c17e7d3bac8f565c140'\n  action [:install]\nend\n```\n\n### influxdb\\_user\nThis resources configures a user to interact with InfluxDB databases.\n\n```ruby\ninfluxdb_user 'user' do\n  password 'changeme'\n  databases ['my_db']\n  action :create\nend\n```\n\n### influxdb\\_admin\nThis resources configures a cluster admin to interact with InfluxDB.\n\n```ruby\ninfluxdb_admin 'admin' do\n  password 'changeme'\n  action :create\nend\n```\n\n### influxdb\\_retention\\_policy\nThis resources configures a retention policy on a given database. The name\nattribute is not used, the database and policy name provide the unique names\nused by InfluxDB.\n\n\u003e Note: in v1.0.0+ there is an auto-generated default profile called autogen.\n\u003e To make your policy the default, you will want to set `default` parameter\n\u003e `true`.\n\n```ruby\ninfluxdb_retention_policy \"foodb default retention policy\" do\n  policy_name 'default'\n  database 'foodb'\n  duration '1w'\n  replication 1\n  action :create\nend\n```\n\n### influxdb\\_continuous\\_query\nThis resources configures a continuous query on a given database.\n\n\u003e If you need rewrite continuous query if it already exist set `rewrite` parametr to `true`.\n\n```ruby\ninfluxdb_continuous_query \"test_continuous_query\" do\n  database 'foodb'\n  rewrite false\n  query 'SELECT min(mouse) INTO min_mouse FROM zoo GROUP BY time(30m)'\n  action :create\nend\n```\n\n## Client Libraries\nRight now, this cookbook only supports the Ruby and CLI client libraries so as\nnot to add too many dependencies. That might change in the near future. By\ndefault both flavors are disabled. Enable e.g. Ruby via:\n\n`node.default['influxdb']['client']['ruby']['enable'] = true`\n\nFinally include the `influxdb::client` in your node's `run_list` to install the\nclients.\n\n## Tests\n\nTo run tests, install all dependencies with [bundler](http://bundler.io/):\n\n    bundle install\n\nThen to run tests:\n\n    rake # Quick tests only (rubocop + minitest)\n    rake test:complete # All tests (rubocop + minitest + kitchen)\n\n## Release Steps\n\n    rake publish\n\n## License\nThis project is licensed under the MIT license\n\n## Maintainers\nBen Dang \u003cme@bdang.it\u003e\n\nE Camden Fisher \u003cfish@fishnix.net\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdangit%2Fchef-influxdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbdangit%2Fchef-influxdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdangit%2Fchef-influxdb/lists"}