This codebase and its cookbooks represent the latest version of Engine Yard's stable-v5-3.0
stack.
To upload and run the recipes from the CLI, you need the ey-core
gem.
gem install ey-core
-
Create the
cookbooks/
directory at the root of your application. If you prefer to keep the infrastructure code separate from application code, you can create a new repository. -
For each custom cookbook that you want to use, do the following:
- Create or edit
cookbooks/ey-custom/recipes/after-main.rb
and add the line:
include_recipe 'custom-<recipe>'
- Create or edit
cookbooks/ey-custom/metadata.rb
and add the linedepends 'custom-<recipe>'
- Download this repository and copy
custom-cookbooks/<recipe>/cookbooks/custom-<recipe>
tocookbooks
. For example, to use memcached, copycustom-cookbooks/memcached/cookbooks/custom-memcached
tocookbooks/custom-memcached
.
- Create or edit
-
Alternative to step #2 above: use ey-v5-starterkit to automate copying the recipe from the custom-cookbooks directory
-
To upload and apply the recipes, run
ey-core recipes upload --environment <nameofenvironment> --apply