Maybe this guide on test-driven cookbook development will help you:
https://github.com/tknerr/bills-kitchen/blob/master/COOKBOOK_DEVELOPMENT.md
Also check out test-kitchen:
https://github.com/opscode/test-kitchen
HTH, Torben
Hi,
i am very new to Chef and eager to know more about it. i need to install
packged on some servers and edit bachrc file with some entries. i've written
recipe for it like this.
package "rpm_package" do
version "11.1.0.7.0"
action :install
source "/tmp/oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm"
provider Chef::Provider::Package::Rpm
end
package "rpm_package" do
version "11.1.0.7.0"
action :install
source "/tmp/oracle-instantclient11.1-sqlplus-11.1.0.7.0-1.x86_64.rpm"
provider Chef::Provider::Package::Rpm
end
cookbook_file "/opt/browsersoft/.bashrc " do
source ".bashrc" # This will check chksum and if not matched replace the
content
mode "0644"
end
however, i'm not sure how to test these recipe. what i am assuming is you need
to cookbook created for and chef server and client installed on nodes.
so, please send me steps how to configure chef server and client and linux
nodes and how chef server will communicate with chef client as well with
detailed steps
please give me details which files i need to cofigure to have these recipe run.
your help will be greatly appreciated.
Thanks,
Goutam
Archive powered by MHonArc 2.6.16.