Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

Latest commit

 

History

History
38 lines (27 loc) · 983 Bytes

data_bag.html.markdown

File metadata and controls

38 lines (27 loc) · 983 Bytes
layout page_title sidebar_current description
chef
Chef: chef_data_bag
docs-chef-resource-data-bag
Creates and manages a data bag in Chef Server.

chef_data_bag

A data bag is a collection of configuration objects that are stored as JSON in Chef Server and can be retrieved and used in Chef recipes.

This resource creates the data bag itself. Inside each data bag is a collection of items which can be created using the chef_data_bag_item resource.

Example Usage

resource "chef_data_bag" "example" {
  name = "example-data-bag"
}

Argument Reference

The following arguments are supported:

  • name - (Required) The unique name to assign to the data bag. This is the name that other server clients will use to find and retrieve data from the data bag.

Attributes Reference

The following attributes are exported:

  • api_uri - The URI representing this data bag in the Chef server API.