Terraform scripts to build and host Ezmeral on KVM infrastructure Cloud-init tested on Centos 7.6.1810
Tool | Link |
---|---|
Terraform | v0.14.2 |
libvirt | v0.6.2 on Ubuntu 18.04 |
libvirt | v0.6.2 on Centos 7.6.1810 |
#> terraform version
Terraform v0.14.2
+ provider registry.terraform.io/dmacvicar/libvirt v0.6.2
+ provider registry.terraform.io/hashicorp/template v2.2.0
/root/.local/share/terraform/plugins/registry.terraform.io/dmacvicar/libvirt/0.6.2/linux_amd64/terraform-provider-libvirt
- Follow the steps under
scripts/Ezmeral_bm_host_prep_steps.sh
to prepare baremetal host - Update VM details in
terraform.tfvars
- Make sure
no_proxy
is properly hardcoded inconf/cloud_init.cfg
- Make sure the path is properly set in
/modules/singlevm/main.tf
, for cloud-image and cloud-config directories. - Make sure you have provided proper bridge interface in
/modules/singlevm/main.tf
- For each VM, host entries has to be added manually at the moment. Fill in
scripts/host_entries.sh
accordingly. - Password to login to vm is configured in
conf/cloud_init.cfg
. Default is root/ezmeral.