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

RSS

marker (3) Versions 1.0.1

Provides a way to create a visual marker in the Chef log based on a template.

Berkshelf/Librarian
Policyfile
Knife
cookbook 'marker', '= 1.0.1'
cookbook 'marker', '= 1.0.1', :supermarket
knife cookbook site install marker
knife cookbook site download marker
README
Dependencies
Changelog
Quality 0%

marker cookbook

Cookbook Release Build Status

Provides a way to create a visual marker in the Chef log based on a template.

It uses a definition because it runs in the context of the recipe where the cookbook and recipe name are available.

Github Repository: https://github.com/rightscale-cookbooks/marker

Requirements

  • Requires Chef 11 or higher

Usage

Add a dependency to your cookbook's metadata.rb:

depends 'marker'

At the beginning of your recipe:

marker "recipe_start"

Now, when your recipe is converging it will log:

********************************************************************************
*  Running recipe hello_world::default

RightScale Audit Entry

This cookbook comes with a rightscale_audit_entry.erb template that can be used to delineate recipes in the Audit Entires UI on the RightScale Dashboard:

marker "recipe_start_rightscale" do
  template "rightscale_audit_entry.erb"
end

This will log in a format that will create an expandable entry for your recipe in the RightScale Audit Entry for your Chef run:

********************************************************************************
*RS>  Running recipe hello_world::default   ****

Custom Templates

You can also use the marker with your own custom templates and even add your own variables:

marker "recipe_start_custom" do
  template "custom.erb"
  cookbook "hello_world"
  variables :host_name => node[:hostname]
end

The template that you include in your cookbook could look like:

********************************************************************************
*  Running recipe <%= @recipe_name %> on <%= @host_name %>

This will log in your custom format:

********************************************************************************
*  Running recipe hello_world::default on localhost

Attributes

There are no attributes in this cookbook.

Recipes

There are no recipes in this cookbook.

Author

Author:: RightScale, Inc. (cookbooks@rightscale.com)

marker Cookbook CHANGELOG

This file is used to list changes made in each version of the marker cookbook.

v1.0.1

  • Update README.md
  • Use test-kitchen 1.1.1 on integration testing
  • Added slack notification to .travis.yml
  • Update .kitchen.yml with latest version OSs

v1.0.0

  • Initial release

Foodcritic Metric
            

1.0.1 failed this metric

FC015: Consider converting definition to a LWRP: /tmp/cook/2306231450c005ce027b0b4b/marker/definitions/marker.rb:1