convert_chef_databag_to_vars
Convert Chef data bag JSON to Ansible variables YAML for use in group_vars, host_vars, or playbook scopes during infrastructure migration.
Instructions
Convert Chef data bag to Ansible variables format.
Args: databag_content: JSON content of the Chef data bag databag_name: Name of the data bag item_name: Name of the data bag item (default: "default") is_encrypted: Whether the data bag is encrypted target_scope: Variable scope ("group_vars", "host_vars", or "playbook")
Returns: Ansible variables YAML content or vault file structure
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"databag_content": "<databag_content>",
"databag_name": "<databag_name>"
},
"name": "convert_chef_databag_to_vars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| databag_content | Yes | ||
| databag_name | Yes | ||
| item_name | No | default | |
| is_encrypted | No | ||
| target_scope | No | group_vars |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |