我正在运行vagrant
1.5.4。在以前的任何版本中,我都可以将chef_solo
提供程序配置设置为引用加密的数据包密钥,就像这里显示的那样,但是现在我收到了以下消息,请参阅下面的代码片段:
$ vagrant --version
Vagrant 1.5.4
$ vagrant up
...
DEPRECATION: Chef encrypted_data_bag_secret has no effect anymore.
Remove this from your Vagrantfile since it'll be removed in the next
Vagrant version.
...
ERROR: Is a directory - /tmp/vagrant-chef-2/encrypted_data_bag_secret_key
FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
有时我收到消息
ERROR: No secret specified to load_secret and no secret found at /etc/chef/encrypted_data_bag_secret
知道如何解决这个问题,或者我降级吗?
更新1:调查更改(在不同的提供程序上)显示encrypted_data_bag_secret_key_path
仍然存在,即使我将其设置为引用正确的路径,我仍然得到上面的弃用消息。此外,我想知道哪个文件正在被解析或用作加密的数据包文件。
似乎是固定的,如果属性从encrypted_data_bag_secret
更改为encrypted_data_bag_secret_key_path
。后者有点误导,它不是指路径,而是指键本身。