Feature Request: Change connector at runtime #1262
Replies: 3 comments
-
Very much yes, I am still trying to figure out a way around this. I'm guessing there is some magic where we can import the various connectors in to inventory.py but what that magic is i'm not sure. |
Beta Was this translation helpful? Give feedback.
-
@Fizzadar any suggestions? thanks |
Beta Was this translation helpful? Give feedback.
-
You could use a host per connector and use if statements to control the operations? Then the inventory is just Allowing hosts to change connectors during execution probably opens the door to lots of weird bugs and above would allow this to be run as a single call still. Let me know if thst doesn’t work! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
(pyinfra v3) current feature flow:
Wanted feature:
`pyinfra @local deploy-all.py -y`
Inside
deploy-all.py
, allow to switch connectors to docker, then to ssh, then to docker again, etc.Switch to between ssh host1, ssh host2, ssh host3 by calling
pyinfra
once.The execution order is based on operation calls.
operation 1 connect to connector A
operation 2 connect to connector B
operation 3 connect to connector C
operation 4 connect to connector A
.
Beta Was this translation helpful? Give feedback.
All reactions