Coder Social home page Coder Social logo

riemann-chef's Introduction

riemann-chef cookbook

This is based on code written by Kyle Kingsbury - I swiped it from a file downloaded from his site. I've put it here to make it easy for (me) to find and hack on if necessary. I'm not supporting it at this point, I'm only doing the work needed to make this work for my current project. If you find any of this useful, help yourself.

Usage

This cookbook is designed to be used without being modified itself, so that you can manage it with Berkshelf or similar. Think of it as a library, rather than code to be customized for your local use. I have a separate, site-specific cookbook which includes the recipes from this one, and puts customized configuration into place. Examples below.

Configuration file

Your own recipe needs to create the /etc/riemann/riemann.config file, something like this:

include_recipe 'riemann::server'

directory '/etc/riemann' do
  owner 'root'
  group 'root'
  action :create
end

template '/etc/riemann/riemann.config' do
  source 'riemann.config.erb'
  owner 'root'
  group 'root'
  mode 0644
  notifies :restart, resources(:service => 'riemann')
end

Then put your config file in 'your-cookbooks/templates/default/riemann.config.erb'.

If you're not doing anything templatey, then just use the cookbook_file resource and put it in files/default/riemann.config.

Configuring riemann-dash

The riemann::dash recipe installs the riemann-dash service, and will create the directory node['riemann']['dash']['directory'] for your configuration files. This defaults to /opt/riemann-dash, if you override the attribute the recipe will create whichever path you set it to.

You need to put the configuration files in that directory in your own recipe, something like this:

include_recipe 'riemann::dash'

remote_directory node['riemann']['dash']['directory'] do
  source 'riemann-dash'
  owner 'riemann-dash'
  group 'riemann-dash'
  files_owner 'riemann-dash'
  files_group 'riemann-dash'
  notifies :restart, resources(:service => 'riemann-dash')
end

The configuration files would go in files/default/riemann-dash in your cookbook.

Attributes

['riemann']['version'] The version of riemann to grab from the package_url ['riemann']['package_url'] The base URL to find the package from. Defaults to 'http://aphyr.com/riemann/' ['riemann']['server'] The hostname where riemann is running, which clients will use to send stuff to ['riemann']['dash']['directory'] The directory where riemann-dash configuration is found

riemann-chef's People

Contributors

kief avatar

Watchers

Eugene Hlyzov avatar James Cloos 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.