节点对象存储在节点本地文件系统的什么位置?
Where are the node objects stored on the node's local file system?
我正在阅读 this doc 并且它是
The chef-client pulls down the node object from the Chef server. If
this is the first chef-client run for the node, there will not be a
node object to pull down from the Chef server. After the node object
is pulled down from the Chef server, the chef-client rebuilds the node
object. If this is the first chef-client run for the node, the rebuilt
node object will contain only the default run-list. For any subsequent
chef-client run, the rebuilt node object will also contain the
run-list from the previous chef-client run.
节点必须在本地某处存储节点对象(json 文件)对吗?我在我的一个节点上查看 C:\chef\cache,但没有看到它。
这些节点对象在节点文件系统中的某个地方 stored/cached?
不,它只存储在内存中。
您可以通过以下方式自行提取它:
file Chef::Config[:file_cache_path] + "/node.json" do
content Chef::JSONCompat.to_json_pretty(node.to_hash)
end
我正在阅读 this doc 并且它是
The chef-client pulls down the node object from the Chef server. If this is the first chef-client run for the node, there will not be a node object to pull down from the Chef server. After the node object is pulled down from the Chef server, the chef-client rebuilds the node object. If this is the first chef-client run for the node, the rebuilt node object will contain only the default run-list. For any subsequent chef-client run, the rebuilt node object will also contain the run-list from the previous chef-client run.
节点必须在本地某处存储节点对象(json 文件)对吗?我在我的一个节点上查看 C:\chef\cache,但没有看到它。
这些节点对象在节点文件系统中的某个地方 stored/cached?
不,它只存储在内存中。
您可以通过以下方式自行提取它:
file Chef::Config[:file_cache_path] + "/node.json" do
content Chef::JSONCompat.to_json_pretty(node.to_hash)
end