Terraform project to run 2 leap15 nodes (ha nodes in future) with libvirt/KVM
download it from terraform website and copy it to:
/usr/local/bin/terraform
copy exacutable:
cp /usr/bin/terraform-provider-libvirt /home/nicoladm/.terraform.d/plugins/linux_amd64/
https://github.com/dmacvicar/terraform-provider-libvirt/tree/master/examples/v0.12/leap15
pool = "KVM-images"
if you want to use the default for example:
pool = "default"
nic-leap15:~/terraform_stuff/terraform-leap15-ha-test> terraform init
terraform plan
nic-leap15:~/terraform_stuff/terraform-leap15-ha-test> terraform apply
virsh net-dhcp-leases default
You can ssh into the guests using the root password defined in cloud_init.cfg
terraform destroy