[chef] Please help me, facing some issues while installing sqlplus


Chronological Thread 
  • From: GOUTAM CHIRANIA < >
  • To:
  • Subject: [chef] Please help me, facing some issues while installing sqlplus
  • Date: Mon, 17 Dec 2012 23:00:20 +0530

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


  • [chef] Please help me, facing some issues while installing sqlplus, GOUTAM CHIRANIA, 12/17/2012

Archive powered by MHonArc 2.6.16.

§