Do not manually save node data
It is not needed
This commit is contained in:
@@ -8,14 +8,4 @@ include_recipe "zerotier::ohai_plugin"
|
||||
ohai "reload_zerotier" do
|
||||
action :reload
|
||||
plugin "zerotier"
|
||||
notifies :run, "ruby_block[save_chef_zero_node]", :delayed
|
||||
end
|
||||
|
||||
# Force save the node back to disk in Chef Zero
|
||||
ruby_block "save_chef_zero_node" do
|
||||
block do
|
||||
node.save
|
||||
Chef::Log.info("Node #{node.name} saved to disk with ZeroTier data")
|
||||
end
|
||||
action :nothing
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user