我们有一个无聊的盒子,可以下载大型文件进行安装。我们正在使用厨师食谱来进行调配。下载这些文件大约需要一个小时。有没有一种方法可以让Chef输出文件下载的进度,而不只是在remote_file请求之后闲置?我正在寻找类似于您在Linux上运行wget的命令行输出。
[remote_file docs似乎并不表明这是可能的。
目前,使用remote_file
资源是不可能的。您可以open a issue on the Chef project请求此功能。
对于在2020年5月或更晚时阅读此书的人。此功能已添加到https://docs.chef.io/resources/remote_file/,并且可以以
的形式使用show_progress true,false#默认值:false
示例:
remote_file installer do
show_progress true
示例输出:
- Progress: 0%
- Progress: 10%
- Progress: 20%