vagrant 1.5.4 chef_solo加密数据包

时间:2014-05-05 08:29:43

标签: ruby chef vagrant chef-solo vagrantfile

我正在运行vagrant 1.5.4。在任何以前的版本中,我可以将chef_solo配置程序配置设置为引用加密数据包密钥为it appears here,但现在我收到以下消息,请参阅下面的代码段:

$ 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:

investigating the changes(在另一个配置文件上)显示encrypted_data_bag_secret_key_path仍然存在,即使我将其设置为引用正确的路径,我仍然会收到上面的弃用消息。此外,我想知道哪个文件正在被解析或用作加密数据包文件。

1 个答案:

答案 0 :(得分:0)

如果属性从encrypted_data_bag_secret更改为encrypted_data_bag_secret_key_path,则

似乎已修复。后者有点误导,它并不是指路径,而是指密钥本身。