pyinfra
pyinfra copied to clipboard
pyinfra turns Python code into shell commands and runs them on your servers. Execute ad-hoc commands and write declarative operations. Target SSH servers, local machine and Docker containers. Fast and...
## Describe the bug ``` bauen1: Okay, using facts does work, kind of, they are evaluated at the right time, but if I now have a fact that will error...
At the moment, the useful utilities `any_changed` and `all_changed` in `pyinfra/operations/util/__init__.py` are broken because `OperationMeta.did_change` now returns a context manager instead of a boolean. This enables the syntax ```python with...
## Describe the bug In the `v3.x` branch, the `--quiet` command line flag no longer works ## To Reproduce `pyinfra pi.local --quiet exec -- go version` ``` NAME="openSUSE Tumbleweed" ID_LIKE="opensuse...
## Describe the bug When using `server.reboot`, pyinfra reboots the target but then waits for it to come back until the timeout, even if the system comes up earlier. ##...
## Is your feature request related to a problem? Please describe Hi, I would like to copy a file on another path on the targets. Ansible provides `ansible.builtin.copy` for this...
I think that the files.Block operation is taking on too much, and also too little. It handles insert, append, replace and delete, along with block markers, backup and file creation....
User-friendly but still somehow secure sudo-password saved in system KeyChain (via python-keyring)
Hi, I'd like to contribute this small piece of code, which, when imported: 1) checks system keyring library (via python-keyring) for the presence of a key for ("pyinfra", "base64-encoded-hostname") 2)...
## Describe the bug Basic line insert with files.block fails with error from unnecessary chown when run ad hoc ## To Reproduce With the file /tmp/trypyinfra not exsting in /tmp,...
## Is your feature request related to a problem? Please describe When writing new operations, it's not easy to put complex logic into basic shell commands. If abstraction level is...
## Is your feature request related to a problem? Please describe I have noticed that the temporary files created by pyinfra are world-readable and often have a predictable name. For...