Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 822 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 822 Bytes

cookbook-api

A simple sinatra app that can act as a site api endpoint for Berkshelf that pulls cookbooks from a Chef API

Author

Dyn Inc - http://dyn.com
Paul Thomas [email protected]

License

Apache 2.0
http://www.apache.org/licenses/LICENSE-2.0.txt

Configuration

Configuration options are all at the start of cookbook-api.rb

  • CHEF_SERVER_URL - The API URL to connect to where the script can download the cookbooks it serves
  • CHEF_CLIENT_NAME - The name of the client to connect to the API with
  • CHEF_CLIENT_KEY - The key for the client to use to connect
  • COOKBOOK_MAINTAINER - Certain fields in the cookbook metadata are 'filled' with data from here
  • API_BASE_URL - The base URL the sinatra app will be listening at (used to make links back to itself)