Nick Mills-Barrett
Nick Mills-Barrett
Totally agree this really would be a killer feature! The original [sudo password issue](https://github.com/Fizzadar/pyinfra/issues/305) has some interesting/relevant comments. I wonder if `SUDO_ASKPASS` being set correctly would solve this at least...
Finally got round to testing this out, unfortunately it doesnāt work :(. Unless explicitly run with `_sudo` the script will hang. There doesnāt appear to be any environment variable to...
Small update on this one: this is on the roadmap for v3. Will initially just be restoring the API docs but Iāll also work on some example code.
https://github.com/pyinfra-dev/pyinfra/commit/5c6b8629501cdee8dbe813006ebbef2a756d5104 puts back the link to the doc properly (https://github.com/pyinfra-dev/pyinfra-examples/blob/main/.old/api_deploy.py). I've also added https://github.com/pyinfra-dev/pyinfra-examples/issues/4 to track updating the example.
Hi Holger! This is a great idea, Iāve actually implemented just this for v3 here: https://github.com/pyinfra-dev/pyinfra/commit/0db36328c0d652a63643ffe00b1f2b55844b6814 So you should be able to pass services list to the existing fact to...
Hm, usually sudo should only do one attempt in non interactive mode. This feels like something arch specific, Iāll try to replicate in docker..
@morrison12 would you mind giving me write permissions on this branch? I'll fixup those issues to land this
Yeah this should work, it's a gotcha currently that it doesn't just work as one would expect.
𤦠the regex here has an extra colon on the end: https://github.com/pyinfra-dev/pyinfra/blob/7540c41fa0284b8dd80dcbea24d3616414484d60/pyinfra/api/facts.py#L40
Fixed: https://github.com/pyinfra-dev/pyinfra/commit/924e6444cbedbd125f7baa048600ef74d5c36ad2, released in v2.9.1 just now.