cookbook 'marker', '~> 2.0.0'
marker (3) Versions 2.0.0 Follow0
Provides a way to create a visual marker in the Chef log based on a template.
cookbook 'marker', '~> 2.0.0', :supermarket
knife supermarket install marker
knife supermarket download marker
marker cookbook
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 12 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)
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
marker Cookbook CHANGELOG
This file is used to list changes made in each version of the marker cookbook.
v2.0.0
- Chef 12 update
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
Collaborator Number Metric
2.0.0 passed this metric
2.0.0 passed this metric
Contributing File Metric
2.0.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
2.0.0 failed this metric
Foodcritic Metric
2.0.0 passed this metric
2.0.0 passed this metric
No Binaries Metric
2.0.0 passed this metric
2.0.0 passed this metric
Testing File Metric
2.0.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
2.0.0 failed this metric
Version Tag Metric
2.0.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
2.0.0 failed this metric