Deploy a script to create new VMs

It uses `virt-install` with the official Ubuntu 20.04 cloud image as a
starting point, with cloud-init to add our SSH keys to the ubuntu user
and set up Zerotier.

USAGE: create_vm VMNAME

Closes #244
This commit is contained in:
Greg Karékinian
2020-12-04 16:21:52 +01:00
parent bc80540c14
commit 9dbe5bcfcb
9 changed files with 337 additions and 0 deletions

22
site-cookbooks/kosmos_kvm/.gitignore vendored Normal file
View File

@@ -0,0 +1,22 @@
.vagrant
*~
*#
.#*
\#*#
.*.sw[a-z]
*.un~
# Bundler
Gemfile.lock
gems.locked
bin/*
.bundle/*
# test kitchen
.kitchen/
kitchen.local.yml
# Chef
Berksfile.lock
.zero-knife.rb
Policyfile.lock.json