A pragmatic interface to programmatically use Ansible.
Project description
subspace 0.1.1
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.1.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file subspace-0.1.1.tar.gz
.
File metadata
- Download URL: subspace-0.1.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21ad7d34cc128b2195e182520b8d4a9deaf58f401fb2db0e24ae1dc5de61a717 |
|
MD5 | 3546d298aee7c6cc600ef337e1d99d55 |
|
BLAKE2b-256 | c998baf1187e581f29f370985f2a6df7ed5fe6052d18cbf2318209d6fe1825aa |
File details
Details for the file subspace-0.1.1-py2-none-any.whl
.
File metadata
- Download URL: subspace-0.1.1-py2-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c93336a0d2fc2e4e6639266fc8dc222b7cfbf265e11439346072a9226e67ea2 |
|
MD5 | 5babe180e032804aa24149b71e5c1e35 |
|
BLAKE2b-256 | c2a7f44fc716c718353d20bc6d0b4b32ae6262c56e9118e89326339d2506c28f |