Skip to content
This repository has been archived by the owner on Aug 22, 2018. It is now read-only.

Latest commit

 

History

History

data_bags

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
First, create the data bag. Name it whatever you want.

    knife data bag create BAG

Next, create data bag JSON files in subdirectories by data bag name. Then
upload the items to the Chef Server with knife:

    knife data bag from file BAG FILE

For example, create a bag named 'apps' with an item named 'instiki':

    mkdir data_bags/apps
    echo '{ "id": "instiki" }' > data_bags/apps/instiki.json

Then upload it to the server:

    knife data bag from file apps instiki.json

For more information about data bags, see the Chef wiki.

http://wiki.opscode.com/display/chef/Data+Bags