Databags are global variables that is stored as JSON Data and is accessible from Chef Server. A data bag is indexed for searching and can be loaded by recipe or accessed during a search.
$ knife data bag create DATA_BAG_NAME (DATA_BAG_ITEM)
knife data bag create TEST_BAG
knife data bag from file TEST_BAG test.json
A data bag is container of related data bag items, where each individual data bag item is a JSON file.
data_bag_item('keystore_file', 'dev')