Nick Mills-Barrett
Nick Mills-Barrett
@wookayin apologies for the delay, I have been away the last few weeks! In this case is the sudo password the same for each host? So essentially want to have...
@ebreton this should be possible today with the following: ``` servers = [ ('2809', {'ssh_user': "nvidia", 'ssh_password': "password1", "_use_sudo_password": "password1"}, ), ('2810', {'ssh_user': "nvidia", 'ssh_password': "password2", "_use_sudo_password": "password2"}, ), ]...
v2.6.1 should fix the false positive success here, my bad for not spotting this before! More @ https://github.com/Fizzadar/pyinfra/issues/936#issuecomment-1368192388
Going to close this now as #881 & #883 are merged, thank you once again for all the hard work here @lowercase00, awesome stuff and a massive improvement to the...
Hi @actuallymentor (& Ibrado) - totally happy with either PR. I _think_ there was a reason I didn't use the other but again I don't recall either, definitely a edge...
Hi @Denperidge, would you mind trying this with the v3.b0 release? I’ve rewritten the type annotations for operations and have tested it working in VSCode.
Yes I think it should. Ideally the sync op should be like rsync’s archive mode I think.
Hmm - so the `ProxyCommand` should be being followed ([implemented here](https://github.com/Fizzadar/pyinfra/blob/master/pyinfra/api/connectors/sshuserclient/client.py#L65)). I _think_ the issue is pyinfra is trying to load up the first `IdentityFile` - does `~/.ssh/id_krypton` exist on...
Looking at Paramiko's code it does offer a bunch of agent classes (http://docs.paramiko.org/en/stable/api/agent.html). Need to investigate further but it looks like something in there might enable using `IdentityAgent`.
So the following should work: ```py server.script("./task/test.sh", _sudo=True) ``` The issue here is pyinfra cannot detect the contents of the script so won't attempt to do sudo. I believe the...