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

marker (3) Versions 1.0.0

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

Policyfile
Berkshelf
Knife
cookbook 'marker', '= 1.0.0', :supermarket
cookbook 'marker', '= 1.0.0'
knife supermarket install marker
knife supermarket download marker
README
Dependencies
Quality -%

marker cookbook

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.

Requirements

Requires Chef 10 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)

No quality metric results found