当使用(Hosted)chef配置一个流浪箱时,我得到了以下错误:
No such file or directory - file not found '/tmp/encrypted_data_bag_secret'
下面是导致错误的调用:
ssl = Chef::EncryptedDataBagItem.load("ssl", s[:id])
我也无法在/etc/chef
中找到encrypted_data_bag_secret
,因为它通常位于我的其他服务器上。
我是不是缺少上传数据包密码的配置?
下面是堆栈跟踪的其余部分:
[2013-02-14T16:51:15+00:00] ERROR: Running exception handlers
[2013-02-14T16:51:15+00:00] FATAL: Saving node information to /srv/chef/file_store/failed-run-data.json
[2013-02-14T16:51:15+00:00] ERROR: Exception handlers complete
[2013-02-14T16:51:15+00:00] FATAL: Stacktrace dumped to /srv/chef/file_store/chef-stacktrace.out
[2013-02-14T16:51:15+00:00] FATAL: Errno::ENOENT: No such file or directory - file not found '/tmp/encrypted_data_bag_secret'
发布于 2013-02-15 06:34:02
在配置流浪箱时,如果您想要使用加密的数据包,则必须提供数据包密钥的路径。
config.vm.provision :chef_solo do |chef|
[...]
chef.encrypted_data_bag_secret_key_path = '/etc/chef/encrypted_data_bag_secret'
[...]
end
https://stackoverflow.com/questions/14880503
复制相似问题