Remork
Accelerator for testinfra. Remork allows to greatly speedup testinfra operations by exploiting single ssh or docker connection.
It provides own extensions to upload files, change files on remote host and other configuration management tasks.
Installation
pip install remork
Usage
Import remork.testinfra somewhere in conftest.py:
import remork.testinfra
After that you can use hostspecs like remork+ssh://host or
remork+docker://container.
Additionally you can override default backends using remork.testinfra.init
call:
import remork.testinfra
remork.testinfra.init('ssh docker')
It allows to use unmodified ssh:// and docker:// hostspecs.
Custom python interpreter path
Remork relies on availability of python executable (any python >= 2.6 would work).
But recent RHEL based distros come without system wide python and provide platform
python only (/usr/libexec/platform-python).
You can pass remork_python param with hostspec:
remork+ssh://host?remork_python=/usr/libexec/platform-python).
Or pass additional options into get_host:
testinfra.get_host(spec, remork_python='/usr/libexec/platform-python')
TODO
-
Inventory.
-
File change transactions as a sane way to apply set of configuration changes, validate configuration as a whole (like complex nginx config with multiple templates) and revert all files back if anything goes wrong.
-
Ansible vault compatible encryption/decryption.
-
Roles and ability to target roles from CLI runner.
-
Ansible module to call remork files.
-
Use remork router with paramiko backend.
Metadata
Release files for remork 0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| remork-0.8.tar.gz | 12.2 kB | Without provenance | Details for remork-0.8.tar.gz |
Release files / remork-0.8.tar.gz
| Download URL | remork-0.8.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b6b036788a61f05aa5372a0a022913a55e9dea524c22c6a9be56a02f771137e
|
|
BLAKE2b-256 checksum How to use checksums |
8e28c8e2a5c277c885ee6ec3f020fc0cd2bb18b54af108a59f30532a6af36c29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8
|
Security for remork 0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.