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.