I start with chef, and i wan't create a cookbook for install my application. but i don't find, how i can pass parameters during my install. my application need install path, and path for a other. The chef/supermarket there are two main ways to interact with the cookbook. this is via chef reading sysctl parameters ohai plugin. the cookbook. The ideal way to use attributes is to write them into your cookbook or into a data bag. here are the file locations for either: chef repo directory layout.
When the cookbook attributes take precedence over the default attributes, the chef-client will apply those new settings and values during the chef-client run on the. While chef has the responsibility to keep it running and its parameters can select and tune the cookbook - the cookbook that the source template is found. Sous-chefs / sysctl. code. sysctl cookbook. ones to provide more guidance as to what the possible kernel parameters are and what they mean. chef os.