I am cleaning up some chef cookbooks, and in a lot places template resource is being used without passing in any variable to the erb file. I was wondering if there is any performance benefit in moving to file resource instead? If so what?
Not any measurable benefit.
I typically consider using templates over files for config files to be a best practice, since its annoying when you do start wanting to inject variables to have to move from a file resource to a template resource and copy the file over.
I also vastly prefer using double-quotes over single-quotes since the perf impact there is also tiny and it always annoying to add interpolation to a string only to realize after it fails that the string had single quotes around it and you have to waste additional time converting them.