A pragmatic interface to programmatically use Ansible.
Project description
subspace 0.4
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.4.tar.gz
(21.3 kB
view details)
Built Distribution
subspace-0.4-py2-none-any.whl
(24.4 kB
view details)
File details
Details for the file subspace-0.4.tar.gz
.
File metadata
- Download URL: subspace-0.4.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7a66ee0689b8beaf19e6de7f68838cc084fb71bc1910343d6221cba45926ec5 |
|
MD5 | a9b18146da6252b30c397b78e9f64db8 |
|
BLAKE2b-256 | de2c4fd400fe286a183533e4b61b66dab37ef54c38e0612fa43ccf94348369a7 |
File details
Details for the file subspace-0.4-py2-none-any.whl
.
File metadata
- Download URL: subspace-0.4-py2-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78686b65a3d3df75147509cee6eff70588ac11d6a4daf8c3b302f03a4a419ee7 |
|
MD5 | 54092012088367c85d276c94ab1509b5 |
|
BLAKE2b-256 | 08970c5ce14ddcb515cad9daac2bafa2ce552c41745d619f5057a50e5a292ee7 |