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

RSS

giraffe (1) Versions 0.1.0

Manages Giraffe, a Graphite dashboard with a long neck

Policyfile
Berkshelf
Knife
cookbook 'giraffe', '~> 0.1.0', :supermarket
cookbook 'giraffe', '~> 0.1.0'
knife supermarket install giraffe
knife supermarket download giraffe
README
Dependencies
Quality 17%

<a name="title"></a> Giraffe Chef Cookbook

<a name="description"></a> Description

Chef cookbook for Giraffe, a graphite dashboard with a long neck.

<a name="usage"></a> Usage

This cookbook provides a Giraffe provider which for you to include in your recipes. The Giraffe provider installs and configures the Giraffe application. You will need to configure a webserver to serve the application.

<a name="requirements"></a> Requirements

<a name="requirements-chef"></a> Chef

Tested on 11.10.4 but newer and older versions (of 11) should work just fine.
File an issue if this isn't the case.

<a name="requirements-platform"></a> Platform

The following platforms have been tested with this cookbook, meaning that the
recipes run on these platforms without error:

  • ubuntu (12.04)
  • centos (6.4)

Please report any additional platforms so they can be added.

<a name="requirements-cookbooks"></a> Cookbooks

This cookbook depends on the following external cookbooks:

<a name="recipes"></a> Recipes

<a name="recipes-default"></a> default

This recipe installs git, a prerequisite for installing giraffe.

<a name="attributes"></a> Attributes

  • node[:giraffe][:revision] - git reference (tag/branch/commit) to checkout (defaults to "1.1.0")
  • node[:giraffe][:repository] - uri of git repository to checkout (defaults to "https://github.com/kenhub/giraffe.git")

<a name="lwrps"></a> Resources and Providers

<a name="giraffe_instance"></a> giraffe_instance

<a name="lwrps-giraffe_instance-actions"></a> Actions

Action Description Default
create Installs Giraffe via git, configures dashboards.js Yes

<a name="lwrps-giraffe_instance-vault-attributes"></a> Attributes

Attribute Description Default Value
path Name attribute: The path for the Giraffe installation. nil
graphite_url The url of the Graphite server for the Giraffe instance to use. nil
dashbords An array of configuration hashes which represent dashboards. []
git_repository The git repository hosting Giraffe source code. nil
git_revision The git revision specifying the revision of Giraffe code to checkout. nil
template_cookbook The cookbook to use when specifying a dashboards.js template. giraffe
template_source The name of the dashboards.js template file in the template_cookbook. dashboards.js.erb

<a name="giraffe_instance-examples"></a> Examples

giraffe_instance "/srv/www/giraffe" do
  graphite_url "http://127.0.0.1"
  dashboards [
    {
      :name => "test",
      :refresh => 5000,
      :description => "test dashboard",
      :metrics => [
        {
          :alias =>  "test",
          :target => "metrics.test.tests",
          :description => "Example metric",
          :summary => "sum",
          :summary_formatter => "d3.format(\",f\")"
        }
      ]
    }
  ]
end

<a name="development"></a> Development

Pull requests are very welcome! Make sure your patches are well tested.
Ideally create a topic branch for every separate change you make.

<a name="license"></a> License and Author

Author:: Heavy Water Operations

Copyright 2011, 2012, 2013, 2014 Heavy Water Operations, LLC

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.

Dependent cookbooks

git >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.1.0 failed this metric

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

Contributing File Metric
            

0.1.0 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 https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.1.0 failed this metric

FC064: Ensure issues_url is set in metadata: giraffe/metadata.rb:1
FC065: Ensure source_url is set in metadata: giraffe/metadata.rb:1
FC066: Ensure chef_version is set in metadata: giraffe/metadata.rb:1
FC069: Ensure standardized license defined in metadata: giraffe/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: giraffe/providers/instance.rb:31
FC085: Resource using new_resource.updated_by_last_action to converge resource: giraffe/providers/instance.rb:39
FC085: Resource using new_resource.updated_by_last_action to converge resource: giraffe/providers/instance.rb:50
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.1.0 passed this metric

Testing File Metric
            

0.1.0 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 https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.1.0 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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number