I am a beginner with the chef and slowly diving deep into it. I have a doubt regarding the "source" attribute of the resource "Package". The documentation says the "source" attribute uses local file system stored files and not HTTP or FTP. I have a 'TOMCAT tar' file and 'Java RPM' package to be installed on nodes.
Just like how the resource "cookbook_file" has files saved in "file" Directory in the cookbooks directory: tree structure of apache cookbook
on which local file system does the "source" attribute of the resource "package" take files from? Does it grab files from the same 'files' directory? or in any other folders? I have written a simple cookbook assuming that the "source" attribute would take files from the "file" dir by default. but that is not working out:
package 'Installing JAVA' do source 'jdk-8u131-linux-x64' action :install end
package 'Installing tomcat version 9' do source 'apache-tomcat-9.0.0.M22.tar' action :install end
Kindly help me out!