Skip to main content

A pragmatic interface to programmatically use Ansible.

Project description

subspace 0.3

A pragmatic interface to programmatically use Ansible.

To install use:
pip install subspace
pip install git+git://git@github.com:iPlantCollaborativeOpenSource/subspace.git

----

subspace
========

A pragmatic interface to programmatically use [Ansible](https://github.com/ansible/ansible).

## Example

```python
import subspace
import logging
my_limits = [{"hostname": "vm3-4", "ip": "1.2.3.4"},
{"hostname": "vm3-5", "ip": "1.2.3.5"}]
logger = logging.getlogger("subspace") # Use your own logger.
subspace.use_logger(logger)
subspace.constants("HOST_KEY_CHECKING", False)
subspace.constants("DEFAULT_ROLES_PATH", "/opt/any/roles/path")
playbook_file = "/opt/any/ansible/playbooks/deploy.yml"
host_list_file = "/opt/any/ansible/hosts"
pb = subspace.PlayBook.factory(playbook_file,
host_list=host_list_file,
limit=my_limits)
```

To follow Ansible's naming, we're named after [Star Trek's subspace technology](http://en.wikipedia.org/wiki/Technology_in_Star_Trek#Subspace).


----

For more information, please see: https://github.com/iPlantCollaborativeOpenSource/subspace

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

subspace-0.3.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

subspace-0.3-py2-none-any.whl (22.9 kB view details)

Uploaded Python 2

File details

Details for the file subspace-0.3.tar.gz.

File metadata

  • Download URL: subspace-0.3.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for subspace-0.3.tar.gz
Algorithm Hash digest
SHA256 2d8e88621f311cfe5ac82063b60733ed56682ba25de3bdc804190a0f3ff78641
MD5 a4f55decaa213e5d301ad152d3a6a175
BLAKE2b-256 3ac70667a7359089e977c69a8a5eb4e22efd4d1eaef189bb44106e6926710fe4

See more details on using hashes here.

File details

Details for the file subspace-0.3-py2-none-any.whl.

File metadata

File hashes

Hashes for subspace-0.3-py2-none-any.whl
Algorithm Hash digest
SHA256 85285146287ecdc9de3aa0321f2cf24919b105b2974e3c311bf338b8b5acb08f
MD5 388c3d87f32c3e16d857acf2344f9da0
BLAKE2b-256 3c5d630e67f1e5d9822af2f9a2c29eda1af5ef82275a90f1248ea35c368437d6

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