Wildcard url matching with remote_file

#1

I would like to use wildcard matching on remote_file, does chef support this?

We have snapshots that are published by maven and maven defaults a timestamp on this file, which is hard for us to hardcode something that in our cookbook remote_file. Does anyone know any suggestion or know of any feature in chef to bypass this?

remote_path="https://...../org/file/version-1.2.3/file-03122019-123507-1.war"
	remote_file remote_path do
		owner new_resource.user
		group new_resource.group
		remote_user new_resource.user_log
		remote_password new_resource.password_log
		source remote_path
	end

Can I do a wildcard on remote_path?

0 Likes

#2

Does your maven repository keep an xml file of the file versions?

0 Likes