Chef · Arazzo Workflow
Chef Add a Cookbook to a Node Run List
Version 1.0.0
Confirm a cookbook exists, read the node, append the recipe to its run list, and verify.
View Spec
View on GitHub
Application DeliveryAutomationComplianceConfiguration ManagementDevOpsDevSecOpsHabitatInfrastructure as CodeInSpecArazzoWorkflows
Provider
Workflows
update-node-run-list
Append a cookbook recipe to a node's run list safely.
Verifies the cookbook is published, reads the current node object, PUTs the amended run list, and reads the node back to confirm the new entry.
1
confirmCookbookPublished
getCookbook
Fetch the cookbook's published versions. A 404 here means the cookbook was never uploaded to this organization and the run list entry would fail at converge time on every node.
2
readCurrentNode
getNode
Read the current node object. Infra Server node updates replace the whole document, so the existing attributes must be in hand before writing.
3
writeAmendedRunList
updateNode
PUT the node object back with the amended run list, carrying the environment and normal attributes through so nothing is dropped.
4
verifyRunList
getNode
Read the node back and assert the new run list entry is present, proving the change is what the next chef-client run will pick up.