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

Select Status


elasticsearch-curator (12) Versions 0.2.7

Installs/Configures elasticsearch-curator

cookbook 'elasticsearch-curator', '= 0.2.7', :supermarket
cookbook 'elasticsearch-curator', '= 0.2.7'
knife supermarket install elasticsearch-curator
knife supermarket download elasticsearch-curator
Quality 43%

elasticsearch-curator Cookbook Version Build Status

Chef cookbook to install and configure elasticsearch-curator from version 4.

Tested Platforms

  • ubuntu 14.04
  • centos 7.2


This cookbook can be used by including elasticsearch-curator::default in your run list and settings attributes as needed. Alternatively, you can use the custom resources directly.

If you are using elasticsearch-curator < 4.2 you might want to use the cookbook version 0.1.4.


Key Type Description Default
node['elasticsearch-curator']['version'] String Version of elasticsearch-curator to install, nil = latest nil
node['elasticsearch-curator']['repository_url'] String URL of elasticsearch-curator package repository ''
node['elasticsearch-curator']['repository_key'] String elasticsearch-curator repository key ''
node['elasticsearch-curator']['bin_path'] String bin path for elasticsearch-curator '/usr/bin'
node['elasticsearch-curator']['username'] String user for running curator 'curator'
node['elasticsearch-curator']['config_file_path'] String path to direct curator config file "/home/#{node['elasticsearch-curator']['username']}/.curator"
node['elasticsearch-curator']['action_file_path'] String path to direct action config file "/home/#{node['elasticsearch-curator']['username']}/.curator"
node['elasticsearch-curator']['cron_minute'] String Minute to run the curator cron job '0'
node['elasticsearch-curator']['cron_hour'] String Hour to run the curator cron job '*'
node['elasticsearch-curator']['config'] Hash config elasticsearch-curator {<br>  'client' => {<br>    'hosts' => [''],<br>    'port' => 9200,<br>    'use_ssl' => false,<br>    'ssl_no_validate' => false,<br>    'timeout' => 30,<br>    'master_only' => false<br>  },<br>  'logging' => {<br>    'loglevel' => 'INFO',<br>    'logformat' => 'default'<br>  }<br>}

This cookbook ships with custom resources for install elasticsearch-curator and managing the configuration file:

Custom Resources


Installs elasticsearch-curator. Optionally specifies a version, otherwise the latest available is installed

elasticsearch_curator_install 'curator' do
  install_method node['elasticsearch-curator']['install_method']
  action :install


Writes out the elasticsearch-curator configuration file.

elasticsearch_curator_config 'default' do
  config node['elasticsearch-curator']['config']
  action :configure

This method also supports a http_auth property to allow passing a string with this format : "username:password". This allows retrieving the credentials from the wrapper cookbook (for example using chef-vault) and not store this sensitive information in the attributes.


This will setup a cron job and create action.yaml file for elasticsearch-curator.

elasticsearch_curator_action 'action' do
  config node['elasticsearch-curator']['action_config']
  minute '0'
  hour '*'
  action :create


To run tests, install all dependencies with bundler:

bundle install
bundle exec cookstyle
bundle exec foodcritic .

Dependent cookbooks

apt >= 0.0.0
poise-python >= 0.0.0
cron >= 0.0.0
yum-epel >= 0.0.0
yum >= 0.0.0
compat_resource >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.



  • Sets tricter permissions on the curator config (contributed by @kovyrin)


  • fix issue #10


  • Added support for centos 6 (contributed by @mdarii)

  • Change syntax test to cookstyle

  • Added LICENSE file


  • Set conditional repo_url attributes directly in default attributes files instead of inside the resource as @Cyberflow recommended (contributed by @GHostQC)

  • Fixed coding style according to Rubocop tests as @Cyberflow recommanded (contributed by @GHostQC)

  • Set max blocklength to 50 instead 30 (contributed by @GHostQC)


  • Fixed pip-installation on both ubuntu and centos boxes, ServerSpec test now verify successfully (contributed by @GHostQC)


  • Added ServerSpec test suites (contributed by @GHostQC)


  • Patched resource config.rb attributes http_auth to allow nil as a value as it is now deprecated (contributed by @GHostQC)


  • Added support for rhel platform family compatible with YUM; Tested on CentOS 7.2 (contributed by @GHostQC)


  • Change package name for elasticsearch-curator debian package version from 4.2


  • Supports a http_auth property (contributed by @EmFl)


  • Add elasticsearch-curator bin path to resource and attributes


  • Bug fixed
  • Add test cookbook for kitchen tests


  • add compatibility with 12.X versions of Chef

Collaborator Number Metric

0.2.7 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric

0.2.7 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must contain a file

Foodcritic Metric

0.2.7 failed this metric

FC108: Resource should not define a property named 'name': elasticsearch-curator/resources/action.rb:9
FC108: Resource should not define a property named 'name': elasticsearch-curator/resources/config.rb:9
Run with Foodcritic Version 12.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric

0.2.7 passed this metric

No Binaries Metric

0.2.7 passed this metric

Testing File Metric

0.2.7 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must contain a file

Version Tag Metric

0.2.7 passed this metric