Open chanster opened 6 months ago
I am working on a PR for this (@dmacvicar)
I too see an important need for this: when writing modules, I may make use of virsh on multiple bare metal nodes to accomplish one orchestration event. I should not know as the caller that there are more than one endpoints.
System Information
Linux distribution
Ubuntu 22.04
Terraform version
Provider and libvirt versions
Checklist
[x] Is your issue/contribution related with enabling some setting/option exposed by libvirt that the plugin does not yet support, or requires changing/extending the provider terraform schema?
[x] Is it a bug or something that does not work as expected? Please make sure you fill the version information below:
Description of Issue/Question
When calling
libvirt
resources within a module, it does not support the provider configuration provided by the caller. Having a module to create virtual machines provides a easy way to create them in mass rather than creating multiple similar resources at the root configuration.lets say I have a module
machine
in{working_dir}/machine
:Setup
main.tf
:./machine/main.tf
:Steps to Reproduce Issue
libvirt
provider.run
terraform init
provider
block from./machines/main.tf
allows module to work but no longer runs with correct context ofqemu:///session
, and defaults toqemu:///system
.terraform
block from./machines/main.tf
causes module not correctly resolve.Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration? No Have you tried to reproduce the issue without them enabled? n/a