How can I correctly tell the tomcat chef recipes to use the version 8 of tomcat.
I try these lines in a attributes/default.rb file of a recipe depending on tomcat:
override['tomcat']['base_version'] = 8
default['tomcat']['base_version'] = 8
raise node['tomcat']['base_instance']
It displays
RuntimeError
------------
tomcat6
How can I get tomcat recipe using installing tomcat8?
Why don't you specify the override using a role? For example:
How to customise a tomcat recipe in Chef
It's also worth noting that the java cookbook uses packages to install tomcat but "tomcat8" is currently not available yet in the Ubuntu repositories...
Hope this helps
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.