octohost / octohost-cookbook

DEPRECATED: A set of Chef cookbooks that build the octohost server using Packer, Terraform, Vagrant and knife solo.
http://www.octohost.io
Apache License 2.0
95 stars 10 forks source link

Rackspace OpenStack image #19

Closed MarZab closed 9 years ago

MarZab commented 9 years ago

It took me the better part of the last 2 days to figure all this out - so I'm writing it down for the next poor soul who goes my path (me included) before this will be cleaned up.

Build the image

darron commented 9 years ago

Thanks for the detailed list. I will take a look and see where I can improve the documentation and the cookbooks.

Unfortunately since we can't share images on Rackspace it makes it more complex than it should be. Maybe I can just use a standard Ubuntu 14.04 image in the JSON so that it cuts out a few steps.

I'll also add a command to clear out Consul to make that easier.

MarZab commented 9 years ago

also https://github.com/octohost/octohost-cookbook/blob/master/files/default/consulkv could have some error checking, giving out a json error was making me go in loops trying to find the source of the error :)

Thanks a bunch for this awesome project, il be sure to contribute as much as I can.

darron commented 9 years ago

OK - so I think I've fixed many of the problems listed here:

  1. Use a public image for the base - so it should work automatically now - you won't get that error anymore and you don't have to do anything with the octohost/ubuntu-14.04 repo now.
  2. Make sure to remove Consul's state at the end of the install - so it should start up easier and cleaner.

I'm going to look and see if I can get Terraform going with Openstack/Rackspace now as well.

darron commented 9 years ago

OK - now there's a set of Terraform files for Rackspace - it clears out Consul and gets it all running:

https://github.com/octohost/octohost-cookbook/commit/beac71a

All you should have to do is:

cp variables.dist variables.tf
terraform apply
cat ~/.ssh/id_dsa.pub | ssh root@ip.add.res.here "sudo gitreceive upload-key name"

Let me know if you've got any questions or concerns. Likely if you're not using North American endpoints some of that may have to change - but it worked in IAD for me.