A pragmatic interface to programmatically use Ansible.
Project description
subspace 0.2.5
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
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
Release history Release notifications | RSS feed
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.2.5.tar.gz
(17.9 kB
view details)
Built Distribution
subspace-0.2.5-py2-none-any.whl
(20.8 kB
view details)
File details
Details for the file subspace-0.2.5.tar.gz
.
File metadata
- Download URL: subspace-0.2.5.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eb335fdebd1b65a56e450e10430a2769a893400a8746aff4900fc328f611cc9 |
|
MD5 | f45acb0d2d6c893f34d1a6f493bfeb8b |
|
BLAKE2b-256 | 90f4ab2dc856625140b6765d498171699d93e68c17c637ab6389601f663751d6 |
File details
Details for the file subspace-0.2.5-py2-none-any.whl
.
File metadata
- Download URL: subspace-0.2.5-py2-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e61bb7ae415decc0511dc6927d1b08f7160227927e31923301f4c1f0b8577ece |
|
MD5 | 553609ec0efe5206675f73d37d938869 |
|
BLAKE2b-256 | 31f990b2acdd1071c3cf17f5f3a0c56edb0a0c00aecc1b60967d17bfca31089e |