Wrap tools download inside cloud init in a retry loop
Remove unnecessary template function
Improve script
Improve script
Merge pull request #598 from wallyworld/tools-retry-loop

Wrap tools download inside cloud init in a retry loop

Fixes: https://bugs.launchpad.net/bugs/1360994

Add a retry loop to the tools download command.