Native packaging enchancements and Crowbar barclamp chef-ectomy [19/25]

This pull request series does the following:

 * Rework barclamp_install.rb to rip out all the legacy code and be
   easier to edit in the future.
 * Change the packaged layout of barclamps to avoid making duplicate
   copies of files we do not need to.  Specifically, we no longer move
   the Chef files out of /opt/dell/barclamps, and the bc-template-*
   files are no longer stored as CHef data bags.  The install routines
   and the Crowbar web framework have been reworked to recognize these
   changes.
 * Change the native packaging routines to use the newly-added --root
   flag to barclamp_install.rb.  This leaves barclamp_install.rb as
   the authoritative source of what an installed barclamp looks like.
 * Remove all chef dependencies from the Crowbar barclamp, with the
   exception of the chef gems for now.  The crowbar setup .install
   scripts are responsible for bringing up the Crowbar webserver, and
   there is no more crowbar cookbook.
 * Migrate all of the Chef cookbooks and roles that were in the
   Crowbar barclamp into the Chef barclamps.
 * Use the opscode omniinstall versions of chef-server and chef-client
   on Ubuntu and Redhat.  This makes bringup of the chef server much
   simpler, and removes our last dependency on ruby 1.8.7 on Ubuntu.
   This also updates the chef server we run to be chef 11.
 * Modify the dependencies to only want the ruby1.9.1 packages on
   Ubuntu.  The crowbar webserver now runs on ruby 1.9.3.
 * Update all the cookbooks in development/master to load onto a chef
   11 server.


 bc-template-chef.json                              |   36 +++
 bc-template-chef.schema                            |   47 ++++
 chef/cookbooks/README                              |   34 +++
 chef/cookbooks/apache2/README.rdoc                 |   78 ++++++
 chef/cookbooks/apache2/attributes/default.rb       |   99 ++++++++
 chef/cookbooks/apache2/definitions/apache_conf.rb  |   27 ++
 .../cookbooks/apache2/definitions/apache_module.rb |   51 ++++
 chef/cookbooks/apache2/definitions/apache_site.rb  |   41 +++
 chef/cookbooks/apache2/definitions/web_app.rb      |   49 ++++
 .../files/default/apache2_module_conf_generate.pl  |   41 +++
 chef/cookbooks/apache2/metadata.rb                 |  197 +++++++++++++++
 chef/cookbooks/apache2/recipes/default.rb          |  229 +++++++++++++++++
 chef/cookbooks/apache2/recipes/god_monitor.rb      |   33 +++
 chef/cookbooks/apache2/recipes/mod_alias.rb        |   22 ++
 chef/cookbooks/apache2/recipes/mod_auth_basic.rb   |   20 ++
 chef/cookbooks/apache2/recipes/mod_auth_digest.rb  |   20 ++
 chef/cookbooks/apache2/recipes/mod_auth_openid.rb  |   83 ++++++
 chef/cookbooks/apache2/recipes/mod_authn_file.rb   |   20 ++
 chef/cookbooks/apache2/recipes/mod_authnz_ldap.rb  |   20 ++
 .../cookbooks/apache2/recipes/mod_authz_default.rb |   20 ++
 .../apache2/recipes/mod_authz_groupfile.rb         |   20 ++
 chef/cookbooks/apache2/recipes/mod_authz_host.rb   |   20 ++
 chef/cookbooks/apache2/recipes/mod_authz_user.rb   |   20 ++
 chef/cookbooks/apache2/recipes/mod_autoindex.rb    |   22 ++
 chef/cookbooks/apache2/recipes/mod_cgi.rb          |   20 ++
 chef/cookbooks/apache2/recipes/mod_dav.rb          |   20 ++
 chef/cookbooks/apache2/recipes/mod_dav_svn.rb      |   22 ++
 chef/cookbooks/apache2/recipes/mod_deflate.rb      |   22 ++
 chef/cookbooks/apache2/recipes/mod_dir.rb          |   22 ++
 chef/cookbooks/apache2/recipes/mod_env.rb          |   20 ++
 chef/cookbooks/apache2/recipes/mod_expires.rb      |   20 ++
 chef/cookbooks/apache2/recipes/mod_fcgid.rb        |   46 ++++
 chef/cookbooks/apache2/recipes/mod_headers.rb      |   20 ++
 chef/cookbooks/apache2/recipes/mod_ldap.rb         |   20 ++
 chef/cookbooks/apache2/recipes/mod_log_config.rb   |   24 ++
 chef/cookbooks/apache2/recipes/mod_mime.rb         |   22 ++
 chef/cookbooks/apache2/recipes/mod_negotiation.rb  |   22 ++
 chef/cookbooks/apache2/recipes/mod_php5.rb         |   37 +++
 chef/cookbooks/apache2/recipes/mod_proxy.rb        |   22 ++
 chef/cookbooks/apache2/recipes/mod_proxy_ajp.rb    |   20 ++
 .../apache2/recipes/mod_proxy_balancer.rb          |   20 ++
 .../cookbooks/apache2/recipes/mod_proxy_connect.rb |   20 ++
 chef/cookbooks/apache2/recipes/mod_proxy_http.rb   |   20 ++
 chef/cookbooks/apache2/recipes/mod_python.rb       |   32 +++
 chef/cookbooks/apache2/recipes/mod_rewrite.rb      |   20 ++
 chef/cookbooks/apache2/recipes/mod_setenvif.rb     |   22 ++
 chef/cookbooks/apache2/recipes/mod_ssl.rb          |   43 ++++
 chef/cookbooks/apache2/recipes/mod_status.rb       |   22 ++
 chef/cookbooks/apache2/recipes/mod_wsgi.rb         |   29 +++
 .../apache2/templates/default/a2dismod.erb         |   22 ++
 .../apache2/templates/default/a2dissite.erb        |   29 +++
 .../apache2/templates/default/a2enmod.erb          |   37 +++
 .../apache2/templates/default/a2ensite.erb         |   38 +++
 .../apache2/templates/default/apache2.conf.erb     |  234 +++++++++++++++++
 .../apache2/templates/default/apache2.god.erb      |   19 ++
 .../apache2/templates/default/charset.erb          |    6 +
 .../apache2/templates/default/default-site.erb     |   57 +++++
 .../templates/default/mod_auth_openid.rb.erb       |   12 +
 .../apache2/templates/default/mods/README          |    2 +
 .../apache2/templates/default/mods/alias.conf.erb  |   24 ++
 .../templates/default/mods/authopenid.load.erb     |    6 +
 .../templates/default/mods/autoindex.conf.erb      |  101 ++++++++
 .../templates/default/mods/deflate.conf.erb        |   16 ++
 .../apache2/templates/default/mods/dir.conf.erb    |    5 +
 .../apache2/templates/default/mods/fcgid.conf.erb  |   10 +
 .../apache2/templates/default/mods/mime.conf.erb   |  196 +++++++++++++++
 .../templates/default/mods/negotiation.conf.erb    |   18 ++
 .../apache2/templates/default/mods/proxy.conf.erb  |   19 ++
 .../templates/default/mods/setenvif.conf.erb       |   28 +++
 .../apache2/templates/default/mods/ssl.conf.erb    |   72 ++++++
 .../apache2/templates/default/mods/status.conf.erb |   16 ++
 .../apache2/templates/default/port_apache.erb      |    2 +
 .../apache2/templates/default/ports.conf.erb       |    6 +
 .../apache2/templates/default/security.erb         |   50 ++++
 .../apache2/templates/default/web_app.conf.erb     |   43 ++++
 chef/cookbooks/bluepill/README.md                  |   87 +++++++
 chef/cookbooks/bluepill/attributes/default.rb      |   29 +++
 chef/cookbooks/bluepill/files/default/bluepill     |   31 +++
 chef/cookbooks/bluepill/metadata.rb                |    7 +
 chef/cookbooks/bluepill/providers/service.rb       |  105 ++++++++
 chef/cookbooks/bluepill/recipes/default.rb         |   36 +++
 chef/cookbooks/bluepill/resources/service.rb       |   26 ++
 .../bluepill/templates/default/default.pill.erb    |   12 +
 chef/cookbooks/build-essential/README.md           |   24 ++
 chef/cookbooks/build-essential/metadata.rb         |   10 +
 chef/cookbooks/build-essential/recipes/default.rb  |   45 ++++
 chef/cookbooks/crowbar/README.rdoc                 |   51 ++++
 chef/cookbooks/crowbar/files/default/config.ru     |    2 +
 chef/cookbooks/crowbar/files/default/crowbar       |   54 ++++
 chef/cookbooks/crowbar/files/default/crowbar.sh    |   29 +++
 chef/cookbooks/crowbar/files/default/crowbar.suse  |  263 ++++++++++++++++++++
 chef/cookbooks/crowbar/files/default/knife.rb      |    2 +
 chef/cookbooks/crowbar/recipes/default.rb          |   69 +++++
 .../crowbar/templates/default/htdigest.erb         |    3 +
 .../crowbar/templates/default/puma.cfg.erb         |    7 +
 chef/cookbooks/kernel-panic/README.rdoc            |    8 +
 chef/cookbooks/kernel-panic/attributes/default.rb  |    2 +
 chef/cookbooks/kernel-panic/metadata.rb            |    6 +
 chef/cookbooks/kernel-panic/recipes/default.rb     |   36 +++
 chef/cookbooks/minicom/files/default/minirc.switch |    5 +
 chef/cookbooks/minicom/metadata.rb                 |    6 +
 chef/cookbooks/minicom/recipes/default.rb          |   23 ++
 chef/cookbooks/minicom/spec/default_spec.rb        |   35 +++
 chef/cookbooks/nscd/metadata.rb                    |   12 +
 chef/cookbooks/nscd/recipes/default.rb             |   33 +++
 chef/cookbooks/openldap/README.rdoc                |  101 ++++++++
 chef/cookbooks/openldap/Rakefile                   |   48 ++++
 chef/cookbooks/openldap/attributes/default.rb      |   61 +++++
 .../openldap/files/default/common-account          |    7 +
 chef/cookbooks/openldap/files/default/common-auth  |    7 +
 .../openldap/files/default/common-password         |    7 +
 .../openldap/files/default/common-session          |    9 +
 .../cookbooks/openldap/files/default/nsswitch.conf |   21 ++
 chef/cookbooks/openldap/files/default/slapd.seed   |   21 ++
 chef/cookbooks/openldap/metadata.rb                |   99 ++++++++
 chef/cookbooks/openldap/recipes/auth.rb            |   70 ++++++
 chef/cookbooks/openldap/recipes/client.rb          |   28 +++
 chef/cookbooks/openldap/recipes/default.rb         |   18 ++
 chef/cookbooks/openldap/recipes/server.rb          |  111 +++++++++
 .../openldap/templates/default/default_slapd.erb   |   47 ++++
 .../openldap/templates/default/ldap-ldap.conf.erb  |   16 ++
 .../openldap/templates/default/ldap.conf.erb       |   26 ++
 .../templates/default/libnss-ldap.conf.erb         |   23 ++
 .../templates/default/login_access.conf.erb        |   16 ++
 .../openldap/templates/default/slapd.conf.erb      |  126 ++++++++++
 chef/cookbooks/openssh/metadata.rb                 |   11 +
 chef/cookbooks/openssh/recipes/default.rb          |   55 ++++
 .../openssh/templates/default/port_ssh.erb         |    2 +
 chef/cookbooks/openssl/README.rdoc                 |   33 +++
 .../cookbooks/openssl/libraries/secure_password.rb |   37 +++
 chef/cookbooks/openssl/metadata.rb                 |    8 +
 chef/cookbooks/openssl/recipes/default.rb          |   19 ++
 chef/cookbooks/packages/attributes/default.rb      |    3 +
 chef/cookbooks/packages/libraries/packages.rb      |    9 +
 chef/cookbooks/packages/metadata.rb                |   22 ++
 chef/cookbooks/rabbitmq/README.md                  |   86 +++++++
 chef/cookbooks/rabbitmq/attributes/default.rb      |   10 +
 chef/cookbooks/rabbitmq/metadata.rb                |   63 +++++
 chef/cookbooks/rabbitmq/providers/user.rb          |   66 +++++
 chef/cookbooks/rabbitmq/providers/vhost.rb         |   34 +++
 chef/cookbooks/rabbitmq/recipes/cluster.rb         |   35 +++
 chef/cookbooks/rabbitmq/recipes/default.rb         |   93 +++++++
 chef/cookbooks/rabbitmq/resources/user.rb          |   25 ++
 chef/cookbooks/rabbitmq/resources/vhost.rb         |   22 ++
 .../templates/default/doterlang.cookie.erb         |    1 +
 .../templates/default/rabbitmq-env.conf.erb        |   10 +
 .../rabbitmq/templates/default/rabbitmq.config.erb |    5 +
 .../templates/default/rabbitmq_cluster.config.erb  |    5 +
 chef/cookbooks/rails/README.rdoc                   |   40 +++
 chef/cookbooks/rails/attributes/default.rb         |    3 +
 chef/cookbooks/rails/metadata.rb                   |   37 +++
 chef/cookbooks/rails/recipes/default.rb            |   38 +++
 .../rails/templates/default/rails_app.conf.erb     |   30 +++
 chef/cookbooks/ruby/README.rdoc                    |   60 +++++
 chef/cookbooks/ruby/definitions/ruby_packages.rb   |   78 ++++++
 chef/cookbooks/ruby/definitions/ruby_symlinks.rb   |   42 ++++
 chef/cookbooks/ruby/metadata.rb                    |   23 ++
 chef/cookbooks/ruby/recipes/1.8.rb                 |   20 ++
 chef/cookbooks/ruby/recipes/1.9.1.rb               |   20 ++
 chef/cookbooks/ruby/recipes/1.9.rb                 |   20 ++
 chef/cookbooks/ruby/recipes/default.rb             |   20 ++
 chef/cookbooks/ruby/recipes/symlinks.rb            |   20 ++
 chef/cookbooks/runit/attributes/default.rb         |   31 +++
 chef/cookbooks/runit/definitions/runit_service.rb  |  159 ++++++++++++
 chef/cookbooks/runit/files/default/runit.seed      |    1 +
 chef/cookbooks/runit/files/ubuntu-6.10/runsvdir    |    6 +
 chef/cookbooks/runit/files/ubuntu-7.04/runsvdir    |    7 +
 chef/cookbooks/runit/files/ubuntu-7.10/runsvdir    |    7 +
 chef/cookbooks/runit/files/ubuntu-8.04/runsvdir    |    7 +
 chef/cookbooks/runit/metadata.rb                   |   37 +++
 chef/cookbooks/runit/recipes/default.rb            |   72 ++++++
 .../runit/templates/gentoo/runit-start.sh.erb      |   32 +++
 chef/cookbooks/sudo/README.md                      |   75 ++++++
 chef/cookbooks/sudo/attributes/default.rb          |   22 ++
 chef/cookbooks/sudo/metadata.rb                    |   39 +++
 chef/cookbooks/sudo/recipes/default.rb             |   35 +++
 chef/cookbooks/sudo/templates/default/sudoers.erb  |   23 ++
 chef/cookbooks/utils/README.rdoc                   |    8 +
 chef/cookbooks/utils/metadata.rb                   |    6 +
 chef/cookbooks/utils/providers/line.rb             |  101 ++++++++
 chef/cookbooks/utils/recipes/default.rb            |   28 +++
 chef/cookbooks/utils/resources/line.rb             |   23 ++
 chef/data_bags/crowbar/bc-template-chef.json       |   36 ---
 chef/data_bags/crowbar/bc-template-chef.schema     |   47 ----
 crowbar.yml                                        |   20 ++
 setup/01-bringup-chef.install                      |   40 ++-
 setup/03-create-admin-role.install                 |   24 --
 187 files changed, 6723 insertions(+), 112 deletions(-)

Crowbar-Pull-ID: 3dc3a7577e4bd35be952fc693dcc5648ace9700f

Crowbar-Release: development