【发布时间】:2017-05-17 23:17:21
【问题描述】:
我是新来的厨师,有人可以帮我正确地理解我的语法或执行以下操作的正确方法吗:
remote_file '/tmp/apache-tomcat-8.0.43.tar.gz' do
source 'http://csjh****1:8000/Tomcat/apache-tomcat-8.0.43.tar.gz'
user 'root'
group 'root'
mode '0755'
action :create
end
directory '/Apps/Dev/Tomcat/8.0.43' do
recursive true
mode 0755
action :create
end
execute 'extract_some_tar' do
command = 'tar -xzvf /tmp/apache-tomcat-8.0.43.tar.gz --strip-
components=1'
command = '--exclude=*webapps/examples* '
command = '--exclude=*webapps/ROOT*'
command = '--exclude=*webapps/ROOT*'
cwd '/Apps/Dev/Tomcat/8.0.43'
end
我的厨房出现以下错误:
================================================================================
Error executing action `run` on resource 'execute[extract tomcat tarball]'
================================================================================
Errno::ENOENT
-------------
No such file or directory - extract
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/last_test/recipes/default.rb
【问题讨论】:
标签: chef-infra