Skip to main content

A pragmatic interface to programmatically use Ansible.

Project description

subspace 0.1.2

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.1.2.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

subspace-0.1.2-py2-none-any.whl (7.0 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for subspace-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f51747ce1259e56b57e947303e2592b9707c9bcda548461a2342205e7b909847
MD5 d5ada810ee77e1a041cd61a17d4c2bde
BLAKE2b-256 9e578699e39125447622decad629616c0e12408d1678446182f89f06dddab56d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for subspace-0.1.2-py2-none-any.whl
Algorithm Hash digest
SHA256 13d0021cafe5ded330ae44f33f068943803c6fb23f5dcba1885b4ceafc36f833
MD5 36f26aa0ffe1a6c7d50aae0c401e12b3
BLAKE2b-256 538b08a66050a84b2830f22ddc234b8a1b409c08bfc9d414f2bfd6403231f75a

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