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.7.tar.gz (13.4 kB view hashes)

Uploaded Source

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