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 When running a task with `_sudo=True, _ask_sudo_password=` in restricted environments where script execution from `/tmp` is prohibited, sudo password prompt appears. Setting `config.TEMP_DIR` in an attempt...
First draft of some type annotations. This will make Mypy complain a lot, but it's a first step on making the cobase leverage type annotations benefits. I'll keep this as...
## Describe the bug The [docstring of python.call](https://github.com/Fizzadar/pyinfra/blob/958b5ef8f076fdb644970efd7213b6f23c017879/pyinfra/operations/python.py#L12) shows a function which takes a `state` and a `host` argument. The implementation however removes these arguments and emits a warning.
This is the beginning of an implementation of `files.block` (and `files.Block`) as contemplated in #565. The main missing feature I can see is `assume_file_present` which is need for the common...
See: https://github.com/Fizzadar/pyinfra/pull/881/commits/947f8f691aec10e8ed963991db49afa36a58abc5 First thought move `state.active_hosts` (and other `*_hosts` variables) to inventory, since that's where they are accessed from anyway, this means `Inventory.state` reference can be dropped entirely.
The idea here is to make functions smaller, and easier to comprehend (and maintain). I tried to split the big functions (mainly the main cli, operations and operation) into smaller...
The error for trying to files.put to a readonly filesystem is confusing, and actions continue afterwards in a surprising way: (on host `slash`, / is mounted ro for some reason)...
Made a few suggestions, hope you guys like. Coverage dropped 0,1%, all tests passing (tested before every single commit so we should be fairly easy to pick relevant ones, or...
## Is your feature request related to a problem? Please describe Some files, I need to change in various places, and its way easier to just `diff original modified`. ##...