[ovirt-users] Re: How to use Python to manage each node in batches, because I want to send some scripts to nodes in batches

2023-08-21 Thread ziyi Liu
import ovirtsdk4 as sdk import paramiko import subprocess # create connection connection = sdk.Connection( url='https://xxx/ovirt-engine/api', username='xxx', password='xxx', ca_file= 'cacert.pem', ) This above is using the api format # Get all hosts hosts_service =

[ovirt-users] Re: How to use Python to manage each node in batches, because I want to send some scripts to nodes in batches

2023-08-18 Thread Jorge Visentini
Hi, Liu. Can you share with us your solution? Cheers. Em sex., 18 de ago. de 2023 às 00:33, Wesley Stewart escreveu: > Not sure what you did. But this seems more like normal server > management. Not sure what you are trying to do, but it seems like ansible > might fit the bill here. > > On

[ovirt-users] Re: How to use Python to manage each node in batches, because I want to send some scripts to nodes in batches

2023-08-17 Thread Wesley Stewart
Not sure what you did. But this seems more like normal server management. Not sure what you are trying to do, but it seems like ansible might fit the bill here. On Thu, Aug 17, 2023, 11:14 PM ziyi Liu wrote: > I have found a solution to log in to each host without password >

[ovirt-users] Re: How to use Python to manage each node in batches, because I want to send some scripts to nodes in batches

2023-08-17 Thread ziyi Liu
I have found a solution to log in to each host without password ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: