Chef · Arazzo Workflow
Chef Define a Role and Assign It to a Node
Version 1.0.0
Create a role, read it back, then place it in a node's run list.
View Spec
View on GitHub
Application DeliveryAutomationComplianceConfiguration ManagementDevOpsDevSecOpsHabitatInfrastructure as CodeInSpecArazzoWorkflows
Provider
Workflows
assign-role-to-node
Create a Chef role and apply it to a node's run list.
Creates the role, verifies it exists on the server, then amends the target node's run list to include the role.
1
createRoleObject
createRole
Create the role with its run list and default attributes. The Infra Server returns 409 if the role name is already taken.
2
readBackRole
getRole
Read the role back to confirm the server stored the run list before any node is pointed at it.
3
readTargetNode
getNode
Read the target node so its environment and attributes survive the whole-object PUT that follows.
4
applyRoleToNode
updateNode
Write the node back with the role in its run list so the next chef-client run picks up the role's recipes and attributes.