# Sample Chef partial search functions.
# These chef library functions require "partial_search" cookbook.
# Upload "partial_searck" cookbook and then modify the metadata.rb file to
# make "partial_search" cookbook as dependency.
#
#
# The following two functions will return the IP of the node running grahite and the port
# to which data can be send for storage.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I'm not sure if this is a good approach as I've not been working heavily with chef recently. | |
# However this was an approach that we used to clear notifications from cookbooks when | |
# using wrapper cookbooks. (worked in Chef 11) | |
# | |
# There are now probably better approaches for writing re-usable cookbooks: | |
# http://www.slideshare.net/someara/cookbook-reusability-chef-community-summit-2014 | |
## cookbook1::example.rb |
Goal
Define a standard for how configuration files similar to hadoop
*-env.sh should be defined in chef-bach
.
Requirement
- Should be able to dynamically add/remove properties to the configuration file
- Should be able to override default values defined in
chef-bach
through a wrapper cookbook - Should be able to conditionally add/remove properties to the configuration file
Proposal