crowbar/barclamp-database — pull request #58 by cdearborn (2014-02-26 22:30:37+00:00)
Title: Interm Berkshelf support [4/6]

This set of pull request is the first in a series that implements
interm Berkshelf support.

Design:

This assumes that there is a berkshelf checked in to the openstack
barclamp. This change will come in a separate pull request so as
to not muddy the waters.

When the user clicks the table cell to target a role to a node,
on_proposed is called on the role. This causes "berks package"
to be called, which creates a package.tar.gz file that contains
all of the dependent cookbooks. Note that this only happens
once for each role.

The chef-solo jig then scp's the package.tar.gz to the target
node, and unzips it.

All of this only occurs if there is a file named
Berksfile.central in the same directory as the Berksfile for
the barclamp, so it will not effect current operation.

Pull requests to come:
- pull request that checks in the berkshelf to the openstack bc
- pull request that adds a nasty hack to make appropriate dirs
writeable so that "berks package" can work
- pull request that removes all of the unneeded copies of the
dependent cookbooks

These pull requests do not address how the berkshelf is initially
created. Discretion is the better part of valor, and the crowbar
team will address this as part of on-line mode.

chef/Berksfile | 3 ++-
chef/cookbooks/database-custom/recipes/default.rb | 2 +-
chef/roles/database-server.rb | 4 ++--
chef/roles/os-ops-database.rb | 6 ++++++
crowbar.yml | 2 +-
.../app/models/barclamp_database/server.rb | 2 +-
.../barclamp_database/barclamp_database.gemspec | 1 +
7 files changed, 14 insertions(+), 6 deletions(-)

Crowbar-Pull-ID: c883448c62c77b5d87ff5d0e991668b6e825ec1d

Crowbar-Release: development