Chef infra 通过Chef recipe从远程http服务器下载具有用户凭据的文件

Chef infra 通过Chef recipe从远程http服务器下载具有用户凭据的文件,chef-infra,chef-recipe,chef-solo,Chef Infra,Chef Recipe,Chef Solo,我正在尝试从chef recipe下载远程文件。如果服务器不需要用户名和密码,我可以使用下面的命令下载文件 remote_file”/destination folder/large file.tar.gz“do 来源“http://www.example.org/large-file.tar.gz 但是我的服务器需要用户名和密码才能下载文件 如何将用户名和密码包含在上述厨师代码中?源代码'https://username:password@www.example.org/which',不要忘了

我正在尝试从chef recipe下载远程文件。如果服务器不需要用户名和密码,我可以使用下面的命令下载文件

remote_file”/destination folder/large file.tar.gz“do
来源“http://www.example.org/large-file.tar.gz

但是我的服务器需要用户名和密码才能下载文件


如何将用户名和密码包含在上述厨师代码中?

源代码'https://username:password@www.example.org/which'
,不要忘了
敏感的真值。

源代码'https://username:password@www.example.org/whatever'
,也不要忘了
敏感的true