Redis exporter recipe secretly doesn't work
During an upgrade of the redis_exporter, I discovered the recipe doesn't actually work. It downloads the exporter but it doesn't extract it to the directory like it is supposed to. I believe this may be related to the fact that the archive has the executable in the root of the archive instead of a folder. Please note the difference between the below two.
node_exporter archive with subdirectory in tgz:
ahanselka@redis1:/var/chef/cache$ tar -tvzf node_exporter.tar.gz
drwxrwxr-x ubuntu/ubuntu 0 2016-05-05 22:23 node_exporter-0.12.0.linux-amd64/
-rw-rw-r-- ubuntu/ubuntu 11357 2016-05-05 22:12 node_exporter-0.12.0.linux-amd64/LICENSE
-rw-rw-r-- ubuntu/ubuntu 197 2016-05-05 22:12 node_exporter-0.12.0.linux-amd64/NOTICE
-rwxr-xr-x ubuntu/ubuntu 14480776 2016-05-05 22:14 node_exporter-0.12.0.linux-amd64/node_exporter
redis_exporter archive without subdirectory in tgz:
ahanselka@redis1:/var/chef/cache$ tar -tvzf redis_exporter.tar.gz
-rwxrwxr-x ubuntu/ubuntu 7534544 2016-11-25 17:07 redis_exporter
I believe this is why the ark resource is failing, it doesn't know how to handle that.