Skip to content

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

@danielcbright

Description

@danielcbright

Example Request

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

  • Chef Automate
    • Includes Chef Infra Server, Chef Infra Client, Chef Workstation and Supermarket
  • Chef Workstation
    • Includes Chef Workstation only
  • Habitat
    • Includes Habitat, Habitat Builder (on-prem and SaaS)
  • InSpec
    • Includes InSpec, Ad-hoc Automate jobs, Audit Cookbook

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

  • N/A

Additional Notes

  • N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions