[chef] Please Help , facing issues while installing sqlplus using chef


Chronological Thread 
  • From: goutam < >
  • To:
  • Subject: [chef] Please Help , facing issues while installing sqlplus using chef
  • Date: Tue, 18 Dec 2012 09:26:53 -0800 (PST)


Hi All,

I am very new to chef and trying to install sqlplus using it. My
requirement for installing sqlplus is basically updating .bashrc file
and then installing it from provided packages. i've written following
recipe for it.

cookbook_file "/root" do
 source "/root/oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm"
   mode "0644"
                              ## used for transferring packages to
client nodes
end

cookbook_file "/root" do
 source "/root/oracle-instantclient11.1-sqlplus-11.1.0.7.0-1.x86_64.rpm"
   mode "0644"
                             ## used for transferring packages to
client nodes
end

cookbook_file "/root/.bashrc " do
  source "/root/.bashrc"
  mode "0644"
                             ## used for updating .bashrc files
end

package "rpm_package" do
                         ## installing packages
  action :install
  source "/root/oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm"
  provider Chef::Provider::Package::Rpm
end

package "rpm_package" do
   action :install
  source "/root/oracle-instantclient11.1-sqlplus-11.1.0.7.0-1.x86_64.rpm"
        ## installing packages
  provider Chef::Provider::Package::Rpm
end

and after that i created sqlplus cookbook and uploaded it using "knife
cookbook upload sqlplus"

i'm not sure how to deploy it so that i can test it further . Please
suggest me how can deploy these recipe or i need to have modification
in the recipe as well.

Your help would be greatly appreciated.

Thanks,
Goutam



Archive powered by MHonArc 2.6.16.

§