This terraform script will be made VMs that will be made as OpenStack.
Have to download terraform-provider-libvirt plugin at the following link.
have to copy the plugin file into .terraform.d/plugins at your home directory.
Verified below versions
- terraform 0.13.4
- libvirtd 5.4.0
- QEMU 4.0.0
- terraform-provider-libvirt 0.6.2
It is better to use authentication with ssh-key. If the using ssh-key, don't use the password.
Outputs:
ceph_instances_with_ipaddr = {
"jacobbaek-ceph001" = []
"jacobbaek-ceph002" = []
"jacobbaek-ceph003" = []
}
deploy_instances_with_ipaddr = {
"jacobbaek-deploy" = []
}
control_instances_with_ipaddr = {
"jacobbaek-ctrl001" = []
"jacobbaek-ctrl002" = []
"jacobbaek-ctrl003" = []
}
compute_instances_with_ipaddr = {
"jacobbaek-ctrl001" = []
"jacobbaek-ctrl002" = []
"jacobbaek-ctrl003" = []
}
- should use default network
- check the virbr names (if there is duplicated name, this script will be failed.)
- should check and modify the variable.tf
- terraform init
- terraform plan
- terraform apply --auto-approve
- cd playbook
- bash get-playbooks.sh