crowbar/barclamp-keystone — pull request #181 by cdearborn (2014-02-26 22:30:34+00:00)
Title: Interm Berkshelf support [3/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/roles/keystone-server.rb | 5 ++---
chef/roles/os-identity.rb | 7 +++++++
crowbar.yml | 3 ++-
.../app/models/barclamp_keystone/server.rb | 2 +-
.../barclamp_keystone/barclamp_keystone.gemspec | 1 +
6 files changed, 15 insertions(+), 7 deletions(-)

Crowbar-Pull-ID: c883448c62c77b5d87ff5d0e991668b6e825ec1d

Crowbar-Release: development