https://pulumi.com logo
Title
a

abundant-architect-1715

06/02/2021, 6:36 PM
Hey folks, Can anyone explain how to work with several libvirt hosts on the same stack ?
Guys, any ideas ?
b

boundless-angle-56560

06/03/2021, 8:31 AM
please provide more details about what you want to achieve
a

abundant-architect-1715

06/03/2021, 8:37 AM
I want create vms on 3 hypervisors from single stack, but there is only one libvirt host connection string in sdk

https://i.imgur.com/eIMjfbt.png

e

elegant-window-55250

06/03/2021, 8:55 AM
I have never used libvirt, but you can probably use a provider to achieve this.
b

boundless-angle-56560

06/03/2021, 8:55 AM
I haven't used librvirt with pulumi but I see that you can create a libvirt provider for finer grained control
e

elegant-window-55250

06/03/2021, 8:55 AM
From what I can see, there is a
uri
field in the provider.
b

boundless-angle-56560

06/03/2021, 8:55 AM
heh
e

elegant-window-55250

06/03/2021, 8:55 AM
😄
@abundant-architect-1715 Which language are you using?
b

boundless-angle-56560

06/03/2021, 8:57 AM
getting two redundant answers is still better then getting none 🙂
e

elegant-window-55250

06/03/2021, 8:57 AM
True!
a

abundant-architect-1715

06/03/2021, 9:26 AM
@elegant-window-55250 I write on go
Guys thanks, provider works)) And one more question, can I run several providers parallel ?
goroutines or threads ?
b

boundless-angle-56560

06/03/2021, 10:51 AM
in my opinion you will have little control over parallelism. Resource provisioning itself is managed by pulumi engine (it decides when to provision a resource). The resource is not provisioned when your code is executed - in the phase merely a "plan what to do" is constructed
a

abundant-architect-1715

06/03/2021, 11:05 AM
thinks, get it