- From: GOUTAM CHIRANIA <
>
- To:
- Subject: [chef] Cook book error
- Date: Tue, 12 Feb 2013 22:41:23 +0530
Hi,
We are trying to copy files from chef server to chef client nodes and
having some problem. example code:
cookbook_file "/root/oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm"
do
source "oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm"
mode "0644"
end
and we receive these errors
[2013-02-07T02:06:44-06:00] ERROR:
cookbook_file[/root/oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm]
(sqlplus::default line 11) has had an error
[2013-02-07T02:06:44-06:00] ERROR:
cookbook_file[/root/oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm]
(/var/chef/cache/cookbooks/sqlplus/recipes/default.rb:11:in
`from_file') had an error:
cookbook_file[/root/oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm]
(sqlplus::default line 11) had an error:
Chef::Exceptions::FileNotFound: Cookbook 'sqlplus' (0.0.1) does not
contain a file at any of these locations:
files/redhat-5.3/oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm
files/redhat/oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm
However, we already have files there in cookbook sqlplus location :
receipe location:
03:10:59 # ls -lrt /var/chef/cookbooks/sqlplus/recipes
total 8
-rw-r--r-- 1 root root 1086 Jan 5 11:50 fifer.rb
-rw-r--r-- 1 root root 1086 Jan 5 11:50 default.rb
Location of files/default:
03:12:16 # ls -lrt /var/chef/cookbooks/sqlplus/files/default
total 46356
-rw-r--r-- 1 root root 851443 Dec 17 12:06
oracle-instantclient11.1-sqlplus-11.1.0.7.0-1.x86_64.rpm
-rw-r--r-- 1 root root 46613626 Dec 17 12:18
oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm
Please help me figure this out.
Thanks,
Goutam
- [chef] Cook book error, GOUTAM CHIRANIA, 02/12/2013
Archive powered by MHonArc 2.6.16.