j7n*_*n7k 18 chef-infra vagrant
使用(托管)厨师配置流浪盒时,我收到以下错误:
No such file or directory - file not found '/tmp/encrypted_data_bag_secret'
Run Code Online (Sandbox Code Playgroud)
这是导致错误的调用:
ssl = Chef::EncryptedDataBagItem.load("ssl", s[:id])
Run Code Online (Sandbox Code Playgroud)
我也找不到encrypted_data_bag_secret在/etc/chef哪里它一般存在于我其他服务器.
我错过了上传数据包秘密的配置吗?
这是堆栈跟踪的其余部分:
[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'
Run Code Online (Sandbox Code Playgroud)
Dra*_*ter 27
在配置流浪盒时,如果要使用加密数据包,则必须提供数据包密钥的路径.
config.vm.provision :chef_solo do |chef|
[...]
chef.encrypted_data_bag_secret_key_path = '/etc/chef/encrypted_data_bag_secret'
[...]
end
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8082 次 |
| 最近记录: |