Skip to main content

Configuration management and accelerator for testinfra

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

remork-0.8.tar.gz (12.2 kB view details)

Uploaded Source

File details

Details for the file remork-0.8.tar.gz.

File metadata

  • Download URL: remork-0.8.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for remork-0.8.tar.gz
Algorithm Hash digest
SHA256 6b6b036788a61f05aa5372a0a022913a55e9dea524c22c6a9be56a02f771137e
MD5 3da7890d531e5bc13f4251d8d46a84ee
BLAKE2b-256 8e28c8e2a5c277c885ee6ec3f020fc0cd2bb18b54af108a59f30532a6af36c29

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page