-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow provider configuration to be passed by its caller #1052
Comments
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. |
I think this could be fixed by using |
This once upon a time got fixed as a fully functioning PR here: https://github.com/dmacvicar/terraform-provider-libvirt/pull/1059/files Has been orphaned afaik. |
It's good to have, at least as inspiration. |
Lets try to get #1059 in. I think it only needs some code fixes. |
System Information
Linux distribution
Ubuntu 22.04
Terraform version
Provider and libvirt versions
Checklist
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?
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.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
The text was updated successfully, but these errors were encountered: