Open arunnalpet opened 3 years ago
Hello,
Ncat: No such file or directory
Have you installed netcat on the target hypervisors ?
On CentOS/RHEL/Fedora:
sudo dnf install nmap-ncat
Hope it helps.
Nicolas
@nmasse-itix I see I have those packages already installed on all hypervisors.
@arunnalpet hi thx for issue. here is an example of the feature, as I can tell the syntax is bit different there https://github.com/dmacvicar/terraform-provider-libvirt/blob/master/examples/v0.13/multiple/main.tf#L28
can you give it try?
If it is failing, you could add
TF_LOG=DEBUG terraform apply
and attach somewhere the logs
Thank you :sun_with_face:
Hi @arunnalpet is this issue solved? If so, could you close it?
Hi, On localhost, I am able to deploy and manage multiple VMs this way and its working fine. I have object list of VMs in 'myvms' variable. Using for_each I am planning to deploy VMs listed in 'myvms'. I have a module 'singlevm' which accepts VM attributes, and spins up a single VM. Here is the code, and this is working perfect for me!
Now, I am trying to extend above code to deploy and manage VMs on multiple libvirt providers. I attempting to have separate modules for deploying VMs on specific host. For each host I have separate variable which holds the list of VMs. What is the best way to set 'provider for each of these modules? (The following code was my attempt, and it doesnt work. It throws up a syntax errror!!)
This is the error i get! Not very much helpful. But I see, it doesnt like the 'providers' json within each module!
Please recommend the best approach