gocd / go-cookbook

Cookbook that installs and configures the open-source ThoughtWorks Studios GoCD product
http://www.gocd.org/
Apache License 2.0
44 stars 66 forks source link

Maintenace and cleanup #52

Open tomzo opened 9 years ago

tomzo commented 9 years ago

I have marked a few points which could be improved https://github.com/gocd-contrib/go-cookbook/commit/867088c17a587a3d3e01b5e4a275d48c07aa466d Issues I am planning to fix:

I think it would also be nice to have LWRP for go agents. I will describe in separate issue. I'd also like to split recipes into just installing Go packages and actually managing services. Default would be still to do both. Probably I will write more tests before I add or refactor anything so that I will see if I break anything.

I will not do this all at once, but in time I should cover all of it.

mjuszczak commented 9 years ago

I'm happy to help, let me know.

tomzo commented 9 years ago

@mjuszczak That's great!

We have development branches at the moment.

@ketan has made some efforts to make a minimalistic version of the cookbook in https://github.com/ketan/go-cookbook/tree/develop . It is good enough to set up server and agents (at least on linux).

I have all his changes in chefspec branch where I also

Integration tests are done in test-kitchen with docker containers.

You can run tests after installing chefdk with

chef exec bundle install
chef exec bundle exec rake unit
chef exec bundle exec rake integration:docker

There are snap-ci builds running at https://preview.snap-ci.com/tomzo/go-cookbook/branch/chefspec

Do you have some something particular in mind?

The way I see it:

ketan commented 9 years ago

As you can probably see from my message on the gitter channel, I've not had much time to look into this.

@tomzo, I do have a very rough and possibly very ugly recipe to setup a agent go on window using both the installer an another via a zip file. Both of them support auto registration of agents, the zipfile requires that java installed via the java cookbook...

This should take care of at-least one OS as part of #50 :)

I'm afraid that I'm going to be going on leave anytime soon, and won't be able to get back to this issue for atleast another couple of weeks. I'm going to dump whatever recipes I have with windows support, in another comment for someone to pick it up.

ketan commented 9 years ago

I'm going to dump whatever recipes I have with windows support, in another comment for someone to pick it up.

I've added the recipes on #50 instead of this issue.

mjuszczak commented 9 years ago

@tomzo My skills would probably best be utilized on Linux-only work -- I don't have much ability to work with/test Windows. I use test kitchen with serverspec/chefspec in my cookbooks, so could handle some work on that end and/or on the minimalistic cookbook. Otherwise, can take a peek at the agent LWRP. Let me know!

tomzo commented 9 years ago

@mjuszczak I believe we should have near 100% chefspec coverage on all platforms before creating LWRP. test-kitchen is quite good at this point. Installing server and agents works fine on linux already.

You can pick up chefspec work from my branch and write cases for debian and centos. If you do, I could cover windows with what ketan has left and we could release it as 1.0.0. It would be good enough to handle linux and windows agents and linux server.

Then we can start working on LWRPs.

mjuszczak commented 8 years ago

@tomzo Deep apologizes for not being able to jump on any of this late last year. I got unexpectedly swamped. Thanks for all of your work on this.