Deploying web applications can be a real nightmare at times, especially when you have numerous SVN repositories of code which all link together when installed on the server to create your application.

I’ve started using Murder to try and work around the headaches and apart from a very small issue (which I’ll discuss at the end!) it’s working perfectly.

(more…)

After reading the thread in the Devops-Toolchain Google Group (http://bit.ly/devops-vmth), I realised it was about time I dusted down Cucumber-Vhost and gave it a quick once-over.

The main addition tonight is way overdue and is the simple addition of a configuration file.  I chose YAML for the config file because XML is not a human readable format and the result is a configuration file which looks as follows:

# Configuration file for cucumber-vhost
#
# Change the settings below to reflect your environment

####  COBBLER ####
cobbler:
    server:       localhost # The server which is running the cobbler XMLRPC API

    port:          80          # The port number to connect to for accessing the API

#### LIBVIRT ####
libvirt:
    driver:       qemu      # The libvirt driver to use as documented at http://libvirt.org/drivers.html#hypervisor

    host:                       # The host to connect and launch the virtual machines (leave blank for localhost)

    type:         system    # How to connect to the hypervisor (see man virsh(1) for more information)
                                  # "system" connects to qemu as root, "session" connects to qemu as the current user.
                                 # Leave blank if using Xen as the driver

    storage_pool: default # The name of the libvirt storage pool to use

Once the configuration file is set up, you can run the usual:

rake features

and cucumber-vhost will launch your VMs based on the configuration and kickstart in Cobbler.

Switch to our mobile site