This Chef cookbook and Capistrano recipe is created to:
- Setup an Ubuntu 12.0.4 server to be ready for GitlabHQ
- Push the 4.0-stable branch of Gitlab
I've separated it into two components because:
- I wanted to better understand the setup process from start to finish and build an idempotent Chef cookbook.
- I like the ability to push new releases using Capistrano.
Tested on Ubuntu 12.0.4 using:
You need to have Ruby 1.9.3-p327, Bundler and Chef already installed - I have included my Ubuntu 12.0.4LTS bootstrap.
There's a Vagrant test vm available here.
- Add your own ssh public keys to
templates/default/gitlab_authorized_keys.erb - Add
recipe[gitlab]to your node's runlist - run:chef-client - Edit
:domaininconfig/deploy.rband then:cap deploy(It may fail to "restart" at the end - that's OK.) - Edit
/home/gitlab/.pam_environment- that's where the database username / passsword are kept. cap deploy:app_setupcap deploy:start- Browse to the ip address and sign in as the default user. (admin@local.host / 5iveL!fe) NOTE: You may need to give it a second to compile all of the assets and get spun up properly - if you see an Nginx 502 Gateway error give it a second.
- Profit
Author:: Darron Froese (darron@froese.org)