cometera/cookbooks — pull request #1 by jastakhova (2013-04-23 18:37:44+00:00)
Title: updated cookbooks working for ubuntu 11, 12

External cookbooks were updated to a newer version, cookbooks were tested to work with ubuntu (10, 11, 12) and centos (5, 6) (for now petclinic manifest definitely works with ubuntu 11, 12 and for lucid ami), recipes were cleaned out of explicit bash "execute" commands, cookbooks were cleaned out of all petclinic content and now are abstract to work with any project.

Needs https://github.com/dieu/petclinic/pull/5 to work with dieu's petclinic.
Needs https://github.com/dieu/chef-solo-extension/pull/1 to work with ubuntu maverick.

There should be also a change in manifest file. As there is no petclinic content in cookbooks itself, username and password for mysql petclinic database should be written in manifest file like:

deploy-database:
action: "chefrun"
phase: deploy-db
precedingPhases: [ install-db ]
parameters:
roles: [ db-node ]
runList: ["recipe[war::mysql]"]
isSolo: true
recipeUrl: "https://github.com/jastakhova/cookbooks/raw/optimize-petclinic-cbs/cookbooks.tar.gz"
jattrs:
database:
name: "petclinic"
username: "jpetstore"
password: "jpetstore"
schema: "https://raw.github.com/${app-fork}/petclinic/${app-branch}/src/main/resources/db/mysql/petclinic-mysql-schema.sql"
data: "https://raw.github.com/${app-fork}/petclinic/${app-branch}/src/main/resources/db/mysql/petclinic-mysql-dataload.sql"

The same for war::configure step.