chef-cft / chef-examples

47 stars 32 forks source link

Example Request: How to Restore Node(s) from a knife ec backup job along with ACL Permissions #57

Open danielcbright opened 3 years ago

danielcbright commented 3 years ago

Example Request

This example request includes usage of the following Chef products (select one or more):

Problem Statement

Currently, if a node is deleted from a Chef Infra Server, and there is a backup of that node via knife ec backup, the node can be restored using knife node from file my_node.json, however, the permissions for the node to access it's own node object are not restored and must be manually done by granting permissions to itself via Chef Manage. This is not an automated way of restoring a node, there are most likely API calls or knife raw commands that can be used to restore the proper permissions as well as the node object itself. This example would show how to do that.

External References

Additional Notes