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


line (28) Versions 0.3.1

Provides line editing resources for use by recipes

cookbook 'line', '= 0.3.1'
cookbook 'line', '= 0.3.1', :supermarket
knife cookbook site install line
knife cookbook site download line

line cookbook


Quite often, the need arises to do line editing instead of managing an entire file with a template resource. This cookbook supplies various resources that will help you do this.


Add "depends 'line'" to your cookbooks metadata.rb to gain access to the resoures.

append_if_no_line "example 1" do file "/tmp/dangerfile" string "HI THERE I AM STRING" end

replace_or_add "ipv4 localhost hosts entry" do path "/etc/hosts" pattern "Why hello there.*" line "Why hello there you beautiful person, you." end


So far, the only resource implemented are

  • append_if_no_line.
  • Planned future resources will include:

  • append_if_no_line

  • comment_lines_matching

  • uncomment_lines_matching

  • delete_lines_matching


tester - A recipe to exercise the resources


Author:: Sean OMeara (

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

al_agents Applicable Versions
autofs Applicable Versions
aws-kinesis-agent Applicable Versions
bash_history_timestamp Applicable Versions
chamber-kibana Applicable Versions
chefdk_bootstrap Applicable Versions
cis-el7-l1-hardening Applicable Versions
dynatrace Applicable Versions
dynatrace-appmon Applicable Versions
elk Applicable Versions
elkstack Applicable Versions
fipsify Applicable Versions
fqdn Applicable Versions
jenkinsstack Applicable Versions
linux-tweak Applicable Versions
nfs Applicable Versions
nyan-cat Applicable Versions
ocserv Applicable Versions
openvpnas Applicable Versions
ps1 Applicable Versions
puncha-kibana Applicable Versions
rc Applicable Versions
zf2 Applicable Versions

No quality metric results found