https://github.com/docwhat/chef-data
Chef data management cookbook.
https://github.com/docwhat/chef-data
Last synced: 5 months ago
JSON representation
Chef data management cookbook.
- Host: GitHub
- URL: https://github.com/docwhat/chef-data
- Owner: docwhat
- License: mit
- Created: 2015-09-08T18:55:37.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2021-02-13T01:55:06.000Z (over 5 years ago)
- Last Synced: 2025-04-10T23:44:33.865Z (about 1 year ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chef-data
Chef data management cookbook.
There are several ways to specify where to get data (like secrets, usernames, etc).
To make it easy to locate and load data, it'd be great to have a data URI scheme.
Some examples:
```
get_data_uri('node://java/version') #=> returns the contents of node['java']['version']
get_data_uri('data-bag://satchel/front-pocket') #=> returns the value of Chef::DataBagItem.load('satchel', 'front-pocket')
get_data_uri('data-bags://bank/deposit-box') #=> returns the value of Chef::EncyptedDataBagItem.load('bank', 'deposit-box')
get_data_uri('data-bags://bank/%name%') #=> returns the value of Chef::EncyptedDataBagItem.load('bank', node.name)
```