CHEF SERVER and client installation guide on linux

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

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:

HTH, Torben
Am 16.11.2012 19:02 schrieb "goutam" goutamchiraniya@gmail.com:

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

Also take a look at the repo from Seth Vargo's TDDing Tmux talk at the community summit.

https://github.com/sethvargo/tdding-tmux/tree/final

--
Jeffrey Hulten
Principal Consultant at Automated Labs, LLC
jeffh@automatedlabs.com 206-853-5216
Skype: jeffhulten

On Nov 17, 2012, at 9:52 AM, Torben Knerr wrote:

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:
GitHub - test-kitchen/test-kitchen: Test Kitchen is an integration tool for developing and testing infrastructure code and software on isolated target platforms

HTH, Torben

Am 16.11.2012 19:02 schrieb "goutam" goutamchiraniya@gmail.com:

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