Create a skill assembly
A skill assembly defines a set of skills should be installed or removed from nodes using add and remove rules.
Prerequisites
Create a skill assembly
To create a skill assembly, follow these steps:
Create a file named
skill-assembly.json
and paste in the following skill assembly definition:{ "name": "my-skill-assembly", "skills": [ { "action": "add", "skill": { "name": "courier-runner", "channel": "stable", "value": ["1.4.2"] } }, { "action": "add", "skill": { "channel": "stable", "name": "chef-gohai", "value": ["1.0.1"] } }, { "action": "add", "skill": { "name": "shell-interpreter", "channel": "stable", "value": ["1.0.2"] } }, { "action": "add", "skill": { "name": "inspec-interpreter", "channel": "stable", "value": ["1.0.3"] } }, { "action": "add", "skill": { "name": "restart-interpreter", "channel": "stable", "value": ["1.0.1"] } }, { "action": "add", "skill": { "name": "chef-client-interpreter", "channel": "stable", "value": ["1.0.3"] } } ] }
Replace each skill’s version number with the version supported by the version of Chef 360 Platform that you’re running. See the release notes for details.
Create the skill assembly:
chef-node-management-cli management assembly create-assembly --body-file skill-assembly.json
The response is similar to the following:
{ "item": { "skillAssemblyId": "e2e66c8a-79ff-4bdc-a4cd-739c3f02f9e9" } }
Save the value of
skillAssemblyId
, you will use it to create a node cohort.
Troubleshooting
Use the assembly find-one-assembly
subcommand to verify that the skill assembly was created or updated successfully:
chef-node-management-cli management assembly find-one-assembly --skillAssemblyId <SKILL_ASSEMBLY_ID>
More information
- See the skill assembly documentation
Next steps
- Create override settings that define required skill settings.