Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Example Dollhouse configuration for building a hudson-ci server from …
…scratch.
- Loading branch information
Showing
7 changed files
with
73 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.rvmrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Dollhouse Hudson | ||
|
||
[Dollhouse](http://github.com/geelen/dollhouse) configuration for turning a vanilla ubuntu install into a functioning hudson-ci server. | ||
|
||
All you need to get started is a freshly install Ubuntu Machine (Mine is in VMWare) and another computer with Ruby installed. | ||
|
||
## Usage | ||
|
||
1. Get [Dollhouse](http://github.com/geelen/dollhouse) set up. | ||
2. Install openssh on your Ubuntu machine. | ||
|
||
$ sudo apt-get install openssh-server openssh-client | ||
|
||
3. Create a password for the root account on your Ubuntu machine. | ||
|
||
$ sudo su - | ||
$ passwd | ||
|
||
4. Ensure the .ssh directory is present on your Ubuntu machine's root home directory. | ||
|
||
$ sudo su - | ||
$ mkdir .ssh | ||
|
||
5. From now on, everything happens on your own computer. Copy your ssh public key over to the server. | ||
|
||
$ scp ~/.ssh/id_rsa.pub root@remote.server.com:.ssh/authorized_keys | ||
|
||
6. Update config/dollhouse/instances/server.yml with the IP address of your vanilla ubuntu machine. | ||
|
||
7. Update config/dollhouse/auth.rb with your authentication details. | ||
|
||
8. Giddy Up | ||
$ /path/to/dollhouse.rb run hudson setup | ||
|
||
9. Visit http://remote.server.com:8080 and bathe in the glory of your fresh Hudson install, with the git, github, ruby and rake plugins pre-installed. | ||
|
||
## Where's the Magic? | ||
|
||
[Dollhouse](http://github.com/geelen/dollhouse) uses [Babushka](http://github.com/benhoskings/babushka) to build servers. The dollhouse configuration is stored in config/dollhouse/deployments/hudson.rb | ||
|
||
Here's what the setup task does: | ||
|
||
1. bootstraps the server, installs [Babushka](http://github.com/benhoskings/babushka) so that the rest can function. | ||
2. Creates a hudson user with the password specified in Auth and copies the public ssh key to the hudson users account. | ||
3. Installs Hudson and all of its dependencies. | ||
4. Installs some useful Hudson plugins for rails. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module Auth | ||
KEYPAIR = Dir.glob(File.expand_path "~/.ssh/id_[dr]sa").first | ||
DB_USER_PASSWORD = "sekret" | ||
SERVER_PASSWORD = "evenmoarsekret" | ||
DB_USER_PASSWORD = "password" | ||
SERVER_PASSWORD = "password" | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
deployment :hudson do | ||
server "hudson" do | ||
|
||
task 'setup' do | ||
bootstrap | ||
|
||
babushka 'quamen:user set up from root', | ||
:username => 'hudson', | ||
:password => Auth::SERVER_PASSWORD, | ||
:your_ssh_public_key => File.read(Auth::KEYPAIR + '.pub') | ||
|
||
as "hudson", :password => Auth::SERVER_PASSWORD do | ||
babushka 'quamen:hudson' | ||
babushka 'quamen:hudson plugins for rails' | ||
end | ||
end | ||
|
||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
stagingX: !ruby/struct:Dollhouse::OnlineServer | ||
name_in_cloud: stagingX | ||
server_name: staging_server | ||
ip: IP.GO.HERE | ||
hudson: !ruby/struct:Dollhouse::OnlineServer | ||
name_in_cloud: hudson | ||
server_name: hudson | ||
ip: 172.16.106.128 | ||
status: :running | ||
deployment_name: staging | ||
deployment_name: hudson |