- We should not need to ssh as root.
- We should not have to remember to scp, that should be part of the default setup.
- Dollhouse should lock down ssh to keys only after copying your key to the server.
- Build a friggin Gem.
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.
- Get Dollhouse set up.
Install openssh on your Ubuntu machine.
$ sudo apt-get install openssh-server openssh-client
Create a password for the root account on your Ubuntu machine.
$ sudo su - $ passwd
Ensure the .ssh directory is present on your Ubuntu machine's root home directory.
$ sudo su - $ mkdir .ssh
From now on, everything happens on your own computer. Copy your ssh public key over to the server.
$ scp ~/.ssh/id_rsa.pub email@example.com:.ssh/authorized_keys
Update config/dollhouse/instances/server.yml with the IP address of your vanilla ubuntu machine.
Update config/dollhouse/auth.rb with your authentication details.
Giddy Up $ /path/to/dollhouse.rb run hudson setup
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?
Here's what the setup task does:
- bootstraps the server, installs Babushka so that the rest can function.
- Creates a hudson user with the password specified in Auth and copies the public ssh key to the hudson users account.
- Installs Hudson and all of its dependencies.
- Installs some useful Hudson plugins for rails.