A pragmatic interface to programmatically use Ansible.
Project description
subspace 0.1.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.1.5.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file subspace-0.1.5.tar.gz
.
File metadata
- Download URL: subspace-0.1.5.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bf3a09df9841881f49f6e846f5453004571c825ed35489e8d3cb22adbcb9a05 |
|
MD5 | c556480df1708f385d06746088dc4c69 |
|
BLAKE2b-256 | 2513d6da0415dac5ef47b75d9debe9c8f2b02e87d112a8acbad7f4a1bf3eab61 |
File details
Details for the file subspace-0.1.5-py2-none-any.whl
.
File metadata
- Download URL: subspace-0.1.5-py2-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30640340ed239bc31e445484b7d04af66b0c07823d23305373e44c4bb38355cd |
|
MD5 | 4f7ca20f98fe1bc4b006a8f8190b8131 |
|
BLAKE2b-256 | 5128ef6b493042bfcc8298e125a82fed6da9a27092fb65054c9c866b30ef7e9c |