crowbar/barclamp-messaging — pull request #16 by cdearborn (2014-02-26 22:30:32+00:00)
Title: Interm Berkshelf support [2/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 | 4 ++--
chef/cookbooks/messaging-custom/recipes/default.rb | 19 +++++++++++++++++++
chef/cookbooks/messaging/recipes/default.rb | 19 -------------------
chef/roles/messaging-server.rb | 3 ++-
crowbar.yml | 2 +-
.../app/models/barclamp_messaging/server.rb | 4 ++--
.../barclamp_messaging/barclamp_messaging.gemspec | 1 +
7 files changed, 27 insertions(+), 25 deletions(-)

Crowbar-Pull-ID: c883448c62c77b5d87ff5d0e991668b6e825ec1d

Crowbar-Release: development