Skip to main content

Multicloud use-case based multihost async provisioner for CIs and testing during development

Project description

mrack

Important: most of the described below is not implemented yet

Provisioning library for CI and local multi-host testing supporting multiple provisioning providers e.g. OpenStack, libvirt, containers, Beaker).

But in comparison to multi-cloud libraries, the aim is to be able to describe host from application perspective. E.g.:

network: IPv4
hosts:
- name: master.testdomain.test
  role: master
  group: ipaserver
  os: fedora-31
- name: client.testdomain.test
  role: client
  group: ipaclient
  os: fedora-30

This is then combined with provisioning configuration where each provider has defined meaning for role, group, os params which e.g. translates to flavors, images, ...

provider: openstack  # default provider
openstack:
  images:
    fedora-30: Fedora-Cloud-Base-30-compose-latest
    fedora-31: Fedora-Cloud-Base-31
  flavors:
    ipaserver: ci.m1.medium
    ipaclient: ci.m1.micro
  networks:
    IPv4: net_ci_4
    IPv6: net_ipv6_only
    dual: net_cci_4_6
  keypair: ipa_key
beaker:
  distros:
    fedora-30: FEDORA-30%
    fodora-31: FEDORA-31%

So then user can quickly change provisioning location just by changing provider name without needing to redefine the provider/cloud specifics. This is especially useful for a lot of jobs sharing the same app specific provisioner configuration.

provider: beaker

Or each host can use a different provider:

hosts:
- name: master.testdomain.test
  role: master
  group: ipaserver
  os: fedora-31
  provider: openstack
  network: dual
- name: client.testdomain.test
  role: client
  group: ipaclient
  os: fedora-30
  provider: beaker

The output is then Ansible inventory with correct group mapping and information which allows to SSH to the machines.

TODO: example

Installation

pip install mrack

Run

Atm there is no CLI and it is implemented as Python library

import mrack
# TODO

Contribute

Projects is using black formater to keep consistent formatting, flake8 and pydocstyle to ensure following Python good practices.

Contributions (Pull Requests) are welcome. It is expected that they will pass tox tests and include unit tests for new code.

Black formatting

Expected formatting can be achived by running:

$ make format

Look into black documentation for possible integration in editors/IDEs.

Testing

Just run tox to execute all tests and linters

$ tox

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

mrack-0.1.3.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

mrack-0.1.3-py3-none-any.whl (51.5 kB view details)

Uploaded Python 3

File details

Details for the file mrack-0.1.3.tar.gz.

File metadata

  • Download URL: mrack-0.1.3.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for mrack-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d98efb3dba2db0e2f5619cf8c7f04fe63b25f2b0c7f718c1eadee4ceb2bbd9f9
MD5 e5020d20e34a88a8b85a02df9cdd7f8b
BLAKE2b-256 29900a725222837f4ca370bbc7ca51c102d3090f5a9925722d4b6862cf68cfa1

See more details on using hashes here.

File details

Details for the file mrack-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: mrack-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 51.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for mrack-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 32fd1244f9dfc78ebca8e4b2593c9525f028dfafe7c3b9f66c472356909caa1b
MD5 cba5b2264e29db20c69973cb73799dcc
BLAKE2b-256 f661af54531a6dda4cb69e80d8765d272efb06bea2674c1038d4095d16897341

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