Register Node Management agent
The Node Management agent manages skills on a node. You must define settings on the Node Management agent before defining skills and override settings that are installed on nodes.
Prerequisites
Register the Node Management agent
To register a Node Management agent, follow these steps:
Create a file named
register-agent-skill.json
that contains the settings for Node Management agent to function:{ "bldrUrl": "<HABITAT_BUILDER_URL>", "bldrChannel": "<CHANNEL>", "bldrAuthToken": "<TOKEN>", "nodeCheckinInterval": <CHECK_IN_INTERVAL>, "updateSkillMetadataInterval": <UPDATE_SKILL_INTERVAL>, "logLevel": "<LOG_LEVEL>" }
Replace:
<HABITAT_BUILDER_URL>
with the Chef Habitat Builder URL. Usehttps://bldr.habitat.sh
for Chef’s Habitat Builder, or the URL of your own Habitat Builder deployment.<CHANNEL>
with the release channel from which to install the skills. For example,stable
.<TOKEN>
with the authentication token for Habitat Builder. If you’re using Chef’s Habitat Builder, set this to an empty string.<CHECK_IN_INTERVAL>
with the interval (in seconds) at which check-in occurs. Value starting from3600
(1 hr).<UPDATE_SKILL_INTERVAL>
with the interval (in seconds) at which skill definitions will be updated. Value starting from3600
(1 hr).<LOG_LEVEL>
: The logging level of the agent. For example,debug
.
Create the skill assembly:
chef-node-management-cli management skill update-agent --body-file register-agent-skill.json
It returns the following response:
{ "code" : 200, "message" : update-agent successful }
More information
- See the documentation on creating and managing a skill assembly.