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

concat (7) Versions 0.1.0

Builds files out of smaller concatenated fragments

Berkshelf/Librarian
Policyfile
Knife
cookbook 'concat', '= 0.1.0'
cookbook 'concat', '= 0.1.0', :supermarket
knife cookbook site install concat
knife cookbook site download concat
README
Dependencies
Changelog
Quality 100%

concat-cookbook

concat is a cookbook inspired by the Puppet concat module to allow you to build text files out of smaller orderable fragments. Use cases include building firewall rules, fragmenting monolithic configuration files into smaller chunks, etc.

Supported Platforms

This was tested on Linux and should work as expected there. No idea whether it will work elsewhere.

Requirements

Chef 12 (maybe it works on Chef 11 too!)

Usage

1) Require the concat cookbook in your own cookbook's metadata.rb. 2) Use the concat_fragment resource type to build up the fragments for the target file. At present the fragments will only make use of template files, and not cookbook files. 3) After all fragment resources have been assembled, use a concat resource, ensuring that the path attribute of this resource exactly matches the path you supplied for each fragment.

Current features

  • allows creation of file fragments and concatenation into final file

Upcoming features

  • deletion of individual fragments (:delete won't be added to concat, just use a regular file resource to do that)
  • fragments from cookbook files as well as templates
  • additional features relentlessly cribbed from the Puppet concat module
  • more tests, and tests renamed to something that makes sense

Acknowledgments

License and Authors

Copyright 2015, Edmund Rhudy

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

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

0.1.0

Initial release of concat - :create for concat_fragment - :create for concat

Foodcritic Metric
            

0.1.0 passed this metric