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 `pip.packages` with `virtualenv` parameter returns error `sh: 1: virtualenv: not found`. It's similar to #567 except rerunning the deploy also results in an error. The deploy...
This is a first attempt at expanding SELinux support in PyInfra, specifically facts and operations for each of: 1. Booleans 1. Port labelling 1. File Contexts 1. File Context Mappings...
## Describe the bug The third bullet under [Contributing/Code Style](https://docs.pyinfra.com/en/latest/contributing.html#code-style) says _single quotes everywhere possible_ but 1. in ``setup.cfg`` line 13 is ``inline-quotes = double`` and 2. in ``pyproject.toml`` ``skip-string-normalization...
`files.sync` always applies host's file permission on the destination directory regardless of `mode` in the command: https://github.com/Fizzadar/pyinfra/blob/ff0913d6a172966760b63fe59e55dff9ea852e0d/pyinfra/operations/files.py#L573 It might be the intended behaviour, but it's fairly surprising, as code like...
Inspiration: #868
Set context before calling `use_sudo_password()` in case it wants access to host data. A use case is setting the sudo password in group data files, and then later providing it...
## Describe the bug Despite #725 saying it's fixed, I got this today: `dateutil.parser._parser.ParserError: Unknown string format: Sun Aug 7 20:37:59 America 2022` My config is old and weird, so...
Hello, The goal would be to have a LXD connector so we can use it like: ``` pyinfra @lxd/ [...] ``` In the back-end it should probably use `lxc exec...
## Is your feature request related to a problem? Please describe Downloading files using the entire available bandwidth may lead to all sort of issues. When downloading large file, it...
This is a fact and an operation to support file "flags" as found in[ BSD-derived](https://github.com/morrison12/pyinfra/pull/new/flags) OSs (including macOS). The first example for macOS would be automating the usual `chflags nohidden...