Skip to content
Add/Wrap chef's search with some helpers
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
libraries
recipes
.gitignore
Berksfile
Gemfile
LICENSE
README.md
chefignore
metadata.rb

README.md

helpers-search cookbook

This recipe brings in a Helpers::Search module that adds/wrapps chefs search function.

Usage

Include this recipe in your run_list, and mix into any class you wnat the methods in.

  • helpers-search::mix_recipe recipe is provde to mix into Chef::Recipe automatically.

you can Open up and mix these methods in other namespaces if needed

  class Chef
    class Template
      include Helpers::Search  
    end
  end

Methods

scoped_search

This wraps chef's search to add domain or environment awareness.

Usage

 scoped_search("domain", :node, "attrib:match" )

Available "scopes"

  • domain
  • environemnt

Recipes

default

Does nothing, just makes sure the libs are loaded

mix_recipe

Add the methods to Chef::Recipe

Author

Author:: Jesse Nelson (spheromak@gmail.com)

You can’t perform that action at this time.