Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kill opscode-test and replace with simple chef-server-bootstrap. #634

Merged
merged 2 commits into from Dec 9, 2014

Conversation

tylercloke
Copy link
Contributor

The repo opscode-test has turned into a minefield of unused code and deprecated ruby projects.

The aspect opscode-test that is used is bootstrapping the initial superuser (solving the chicken and egg problem). Even this is mired in dependencies on old ruby repos that we want to deprecate but still depends on this code (mixlib-authentication, mixlib-authorization, opscode-billing, and opscode-shared to name a few).

This pulls in the refactored chef-server-bootstrap repo that pulls out all of the above dependencies and just has a simple script for bootstrapping the superuser and global containers, killing all the above dependencies. Also review that repo just linked (its a pretty small repo). Will transfer ownership to Chef if we decide to merge this work.

New Build

Relevant work

https://github.com/tylercloke/chef-server-bootstrap

Deprecation Notes

@tylercloke
Copy link
Contributor Author

Will squash and update changelog on 👍

Also, will change the software definition once I donate the chef-server-bootstrap repo to Chef :)

#
# Author:: Tyler Cloke (<tyler@getchef.com>)
# Copyright:: Copyright (c) 2012-2014 Chef Software, Inc.
# License:: Apache License, Version 2.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Picky: if this is new, it should probably just be 2014.

@doubt72
Copy link
Contributor

doubt72 commented Dec 8, 2014

👍

@@ -4,7 +4,7 @@

# Enable S3 asset caching
# ------------------------------
use_s3_caching true
use_s3_caching false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this set to false? That should always be true for Chef's omnibus projects.

@tylercloke tylercloke force-pushed the tc/update-bootstrap branch 2 times, most recently from 4a1a540 to e3e12d7 Compare December 9, 2014 00:50
Updated bootstrap in a variety of ways. Most importantly, pulled in chef-server-bootstrap to replace opscode-test. This allows us to get rid of a variety of now deprecated ruby code, including:
+ opscode-test
+ opscode-billing
+ couchrest
+ opscode-shared
+ mixlib-* (still used by client)

It also removed inserting the pivotal password on bootstrap, as this was pointless, since it isn't used internally, and the unhashed password is saved nowhere, so a user would have to regenerate the password anyway to use it.
tylercloke added a commit that referenced this pull request Dec 9, 2014
Kill opscode-test and replace with simple chef-server-bootstrap.
@tylercloke tylercloke merged commit ae3eb51 into master Dec 9, 2014
@tylercloke tylercloke deleted the tc/update-bootstrap branch December 9, 2014 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants