Skip to content

chef-boneyard/smokeping

Repository files navigation

Smokeping Cookbook

Build Status Cookbook Version

Installs and configures the SmokePing server and fping service

SmokePing: http://oss.oetiker.ch/smokeping/

fping http://fping.org/

Requirements

Platforms

  • Debian/Ubuntu

Chef

  • Chef 12.7+

Cookbooks

  • apache2
  • perl

Attributes

default['smokeping']['site_remark_owner'] = 'Some Company'
default['smokeping']['admin_name']  = '<admin name>'
default['smokeping']['admin_email']  = '<admin email>'
default['smokeping']['alert_email']  = '<alert email>'

Usage

The right way to use this cookbook is to create a new site-specific cookbook that look up the needed data and pass them to this cookbook via the Target provider.

Using the Target provider

  # Expected data structure
   data = {
     "name" => "Production"
      nodes => ["nodea", "nodeb"],
      slaves => ["nodeb"]
   }

   smokeping_target "name" do
   action :create
   variables(
      :data => data
      )
   end

Apply the recipe to a the nodes runlist and run Chef

License & Authors

Author: Tim Smith (tsmith@chef.io)

Copyright: 2013-2015, Limelight Networks, Inc. Copyright: 2016, Chef Software, Inc.

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

    http://www.apache.org/licenses/LICENSE-2.0

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.