Added the capture-vm-snapshot script, which is used to turn a VM into a
template.

Has been on husky0 for quite some time, as a matter of fact, so now is
about time that it be added to git.

When called, it takes the name of a VM as a parameter, then SSHs into
it, and wiats for the puppet process to die. When SSH returns, the VM is
shut down, and its VIF is removed. It is then turned into a template.
Don't use camel case
Don't echo $ip
Check number of args, before using $1
Check only one VM with that name label before doing anything with it
Move user constant to top of file
We need to SSH in as root, not dtg
Don't die on errors, we want to keep trying SSH until it works.
Keep trying to SSH into the newly created VM, until we get in. Then spin
until puppet stops running.

The second check is arguably redundant, because vm-boot runs puppet, and
then writes root's publicc key, so we can't SSH in before puppet has
finished.

Nevertheless, the world might not always be like this. This script
should not rely on that ordering of actions to work.
Specify the owner and deleteable by early on.

Previously, the setting of these values relied on a bunch of other steps
working, which may not have done. For instance, we had to RDNS a VM
before we set its owner.

This patch sets these details ASAP. Without it, it the cl-dtg-rm-vm
script will not run when a VM fails to create fully.
More specific variable naming
Add comment explaining why we disable host key checks
Merge branch 'set-vm-details-early' of /srv/git/repositories/infrastructure/husky-scripts into upstream
Rename cl-dtg-make-vm.py to cl-dtg-make-vm, and remove the symlink.

We were not previously able to do this because we shelled out to fab,
which expects a .py extension. However by using execute() semantics, we
can. This then cleansup the namespace.
Implement the -r option, and rename /dev/xvda

Allow users to specify -r <size_of_xvda> as an argument.

We have too many disks with names like plane-crash-os. One can't keep
track of them. Therefore we should rename them to reflect the name of
the os they're attached to.
Rename capture-vm-snapshot to dom0-vm-to-template.sh
Merge branch 'capture-vm-snapshot-initial' of /srv/git/repositories/infrastructure/husky-scripts into upstream
Merge branch 'remove_make_symlink' of /srv/git/repositories/infrastructure/husky-scripts into upstream
Merge remote-tracking branch 'origin/rename-resize-xvda' into upstream

Conflicts:
	cl-dtg-make-vm/cl-dtg-make-vm.py
Merge branch 'upstream'