I have this run list: recipe-A, my-recipe
.
recipe-A
creates /etc/A
directory.
my-recipe
has these codes:
...
// create '/etc/A/file-1'
...
File.symlink('/etc/A/file-1', '/etc/A/file-2')
...
So, when my-recipe
runs, there should be /etc/A
directory already, which was created by recipe-A
. But I got this error at very first of the chef run:
================================================================================
Recipe Compile Error in ...
================================================================================
Errno::ENOENT
-------------
No such file or directory - (/etc/A/file-1, /etc/A/file-2)
I am sure that recipe-A
has not been run when this error message is shown up. But isn't it supposed for recipe-A
to run first? Why is Chef checking the existence of /etc/A
, which is created by recipe-A
while it has not been run? How can I solve this?