Register a Node on the Infra Server
A 3-step recipe with Chef. We can help you get access.
Recipe · 3 steps
Register a Node on the Infra Server
with Chef
Idempotently register a node with the Chef Infra Server.
- List the organization's nodes so the workflow can tell a new registration from a node that is already under management.
- Create the node object with its environment, run list, and normal attributes. The Infra Server rejects a duplicate node name with a 409, which keeps the registration idempotent.
- Read the node back by name to confirm the Infra Server persisted the environment and run list exactly as they were sent.
What you'll need to have ready
- nodeName: The unique node name to register (e.g. web-01.example.com).
- chefEnvironment: The Chef environment to place the node in (e.g. production).
- runList: The ordered run list for the node (e.g. ["role[base]", "recipe[nginx]"]).
- normalAttributes: Normal-precedence attributes to set on the node object.
For your developer
Arazzo workflow chef:register-node, 3 operations: listNodes → createNode → getNode. Specs on APIs.io.