Skip to main content
Glama

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
databag_contentYes
databag_nameYes
item_nameNodefault
is_encryptedNo
target_scopeNogroup_vars

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kpeacocke/souschef'

If you have feedback or need assistance with the MCP directory API, please join our Discord server