[root@default-centos-65 temp]# chef-client -z break.rb -c /etc/chef/client.rb Starting Chef Client, version 12.4.0 resolving cookbooks for run list: [] Synchronizing Cookbooks: Compiling Cookbooks... Converging 1 resources Recipe: @recipe_files::/root/temp/break.rb * directory[/test/foo] action create * Parent directory /test does not exist, cannot create /test/foo ================================================================================ Error executing action `create` on resource 'directory[/test/foo]' ================================================================================ Chef::Exceptions::EnclosingDirectoryDoesNotExist ------------------------------------------------ Parent directory /test does not exist, cannot create /test/foo Resource Declaration: --------------------- # In /root/temp/break.rb 1: directory '/test/foo' do 2: action :create 3: end Compiled Resource: ------------------ # Declared in /root/temp/break.rb:1:in `from_file' directory("/test/foo") do action :create retries 0 retry_delay 2 default_guard_interpreter :default path "/test/foo" declared_type :directory cookbook_name "@recipe_files" recipe_name "/root/temp/break.rb" end Running handlers: Running handlers complete Chef Client failed. 0 resources updated in 1.386875225 seconds [root@default-centos-65 temp]#