I have tried to use the remote_file resource to download a jar file. However, the version of the jar file is not known to me before hand to place in a variable. I have to fetch another file first that contains the version, parse it and use it to build the path which remote_file will use to download the jar version.
My attempts have not been successful, since at convergence whatever version I parsed from the file that contains the version, it not available for the path build string used in remote_file resource.
In summary, the version of the file to be fetch is contained in another file that needs to be downloaded first and parsed.
If you understand what I am explaining, do you have another way of doing this? Do you have any suggestion or guidance?