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


splunkstorm (3) Versions 0.0.1

Installs/Configures Splunk Storm forwarders

cookbook 'splunkstorm', '= 0.0.1'
cookbook 'splunkstorm', '= 0.0.1', :supermarket
knife supermarket install splunkstorm
knife supermarket download splunkstorm
Quality -%


This little Chef Cookbook provides recipes and definitions to install Splunk Forwarders and setup monitors for Splunk Storm.

As you know, Splunk Storm uses a proprietary credentials file to setup access to the Splunk Storm servers/account. You probably won't want to have this file floating around in your cookbook unencrypted, so we're going to stuff the contents of the credentials file into a Secure Databag.

To do that, you'll need to:

  1. Create the data bag using knife (or whatever process you usually take)

    knife data bag create licenses storm --secret-file ~/.chef/encrypted_data_bag_secret
  2. Open irb and run the following script (make sure you update the variables to suit your setup)

    require 'base64'
    require 'chef'
    data_bag     = "licenses"
    data_bag_key = "storm"
    license_file = "stormforwarder_XXXXXXXX.spl"
    c = Chef::DataBagItem.load(data_bag, data_bag_key)
    contents = [, "rb") {|io|}].pack("m")
    c['data'] = contents
    c['filename'] = license_file
  3. You'll probably want to check-in your databag into your SCM

    knife data bag show licenses storm -Fj > data_bags/licenses/storm.json

If you need to get the credentials out of the databag and into an actual file (note: the cookbook takes care of this for you), you can run this command in irb

require 'base64'
require 'chef'

data_bag     = "licenses"
data_bag_key = "storm"

c = Chef::DataBagItem.load(data_bag, data_bag_key)['filename'], "wb") do |file|


  • v0.0.1 - Initial Release

Current Bugs

  • Very beta - only tested in Ubuntu 12.04



  • Ubuntu, Debian, RedHat, CentOS, Fedora

  • This cookbook has only been tested thoroughly with Ubuntu


See attributes/default.rb for default values.

  • node['splunkstorm']['cookbook_name'] - The name of the directory in which the cookbook runs.
  • node['splunkstorm']['forwarder_home'] - The directory in which to install the Splunk Forwarder
  • node['splunkstorm']['auth'] - The default admin password to use instead of splunks "changeme"
  • node['splunkstorm']['forwarder_root'] - The base URL that splunk uses to download release files for Splunk Forwarder
  • node['splunkstorm']['forwarder_version'] - The specific version of Splunk Forwarder to download
  • node['splunkstorm']['forwarder_build] - The specific build number of Splunk Forwarder to download



Installs Splunk Forwarder for Storm. - You need to setup data bags with your Splunk Storm credentials. Check out this gist for details:


Splunk Storm Forwarder Install:

This will install the Splunk Forwarder:


Resources and Providers

To add and remove monitors you can use the splunkstorm_monitor provider:

include_recipe "splunkstorm"

# monitor the log directory in Splunk Storm
splunkstorm_monitor "/var/log" do
  path "/var/log/*.log"
  action :add

# remove the log directory monitor in Splunk Storm
splunkstorm_monitor "/var/log" do
  path "/var/log/*.log"
  action :remove

License and Author

Author:: Aaron Wallis (

Copyright 2012-2013, Lexer Pty Ltd.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found