Skip to content

Instantly share code, notes, and snippets.

@tduffield
Created July 29, 2015 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tduffield/e35b975bfdb800d000c1 to your computer and use it in GitHub Desktop.
Save tduffield/e35b975bfdb800d000c1 to your computer and use it in GitHub Desktop.
Readme for Ooyala Cookbook

ooyala-delivery-demo

This cookbook represents an example of how to upload a cookbook to multiple Chef Servers. We accomplish this by leveraging the delivery_chef_cookbook resource made available from delivery-sugar. For information on how to use delivery_chef_cookbook, please check out the documentation here.

This cookbook lays down the necessary knife environments on a per-project basis by storing the client keys in chef-vault and calling them from there. You can also lay the knife environments down per project but you can also lay them down using other means such as a global cookbook or manual. All that is required is that you give the fully-qualified path to a working (working = can work outside delivery) knife.rb to the DeliverySugar::ChefServer instance.

chef_server = DeliverySugar::ChefServer.new('/fully/qualified/path/to/knife.rb')

The only requirements to make this work is that your build cookbook depend on delivery-sugar. If you are using delivery-truck then this will happen automatically for you. Otherwise take a look at the Berksfile and metadata.rb for an example of how to depend explicitly on delivery-sugar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment