使用 https://github.com/bflad/chef-jira 中的 Recipe 使用 Recipe 中的 Vagrantfile
使用命令:
vagrant up ubuntu1204 > c:\temp\chef-jira.log
日志文件中的第一个错误:
==> ubuntu1204: [2014-08-30T14:23:41+00:00] ERROR: Running exception handlers
==> ubuntu1204: [2014-08-30T14:23:41+00:00] ERROR: Exception handlers complete
==> ubuntu1204: [2014-08-30T14:23:41+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> ubuntu1204: [2014-08-30T14:23:41+00:00] DEBUG: Chef::Exceptions::ResourceNotFound: resource template[/etc/tomcat6/Catalina/localhost/jira.xml] is configured to notify resource service[tomcat] with action restart, but service[tomcat] cannot be found in the resource collection. template[/etc/tomcat6/Catalina/localhost/jira.xml] is defined in /tmp/vagrant-chef-3/chef-solo-1/cookbooks/jira/recipes/container_server_configuration.rb:8:in `from_file'
关于如何解决错误的任何想法?
谢谢, 莉奥拉
最佳答案
如果方案 A 中的资源依赖于方案 B 中的资源,请在方案 A 之上包含方案 B。
关于tomcat - chef-jira Recipe - Vagrant 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25583496/