Chef repository for GeoSensorWeb Lab, University of Calgary.
Contains cookbooks for provisioning machines with various services managed by the GeoSensorWeb Lab. I am planning to include support for Chef-zero to bootstrap servers individually, and to support a centralized Chef server.
Sensitive information such as passwords and keys will be managed externally, and will be manually deployed to servers or via encrypted data bags.
About the names: cloud instances are named after "trail" roads in Calgary, Canada.
Template for new cookbooks. Contains test-kitchen configuration for local testing with VirtualBox/vagrant.
- Duplicate the template:
cp -r gsw-cookbook-template node-cookbook
- Edit
node-cookbook
to replacegsw-cookbook-template
in recipes, metadata, etc - Add
node-cookbook
to the git repository and push to origin
Want to set up a new/existing cloud instance or machine with a cookbook? Here are the step-by-step instructions. (TODO)
For Knife, be sure to add configuration settings for Chef Vault:
knife[:vault_mode] = "client"
As an alternative to bootstrapping cookbooks, a centralized Chef Server can be used to manage node attributes and run lists, as well as data bags. See the Chef Server Cookbook for details.
These cookbooks could have been separated into individual git repositories. I chose not to as there is only one sys admin/developer (me) at the moment and one repository is less overhead.
Chef SuperMarket has many publicly available cookbooks that can be re-used for great functionality. Unfortunately many are out of date and barely supported or even abandoned. Some may not support more recent OS releases, or work with the latest version of Chef. Some of the maintainers have moved on to other projects, or are no longer employed at the same company/organization. Sometimes major releases have major API changes that I don't have time to implement.
For those reasons I have found it easier to install and configure software in your own cookbooks, especially for really small teams. This also means new developers will not have to look up external cookbook APIs to understand what a cookbook in this repository is doing.
See each cookbook for individual licensing. If no license is specified, then Apache 2.0 is assumed.
James Badger (@openfirmware, [email protected])