A pragmatic interface to programmatically use Ansible.
Project description
subspace 0.5.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
# Use a custom logger
logger = logging.getlogger("subspace")
# Set ansible configuration
subspace.configure({
"HOST_KEY_CHECKING": False,
"DEFAULT_ROLES_PATH": "/opt/any/roles/path"
})
# Run playbooks
host_file = "/opt/any/ansible/hosts"
playbook_dir = "/opt/any/ansible/playbooks"
hosts = [ "vm3-4", vm3-5" ]
pb = subspace.Runner.factory(host_file,
playbook_dir,
limit_hosts=hosts,
logger=logger)
pb.run()
```
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.5.1.tar.gz
(21.0 kB
view details)
Built Distribution
subspace-0.5.1-py2-none-any.whl
(24.5 kB
view details)
File details
Details for the file subspace-0.5.1.tar.gz
.
File metadata
- Download URL: subspace-0.5.1.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 666bd401577453445b1047e01d284e501f5ff86534f7c4ac3b31a5f6a2726195 |
|
MD5 | 8d90dbb7bab1aedf8b0d54212112a588 |
|
BLAKE2b-256 | e9f070bce9032f5a66b4e4eafa0c0bbabe0e4a1b5accffb9525390fa37f251f1 |
File details
Details for the file subspace-0.5.1-py2-none-any.whl
.
File metadata
- Download URL: subspace-0.5.1-py2-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 631aee1a795e8f1df9a8eb0e17cc51c8c906c3d291417b942f2e07fc6404a1e7 |
|
MD5 | dd6d566212a1b2483d57abf37beeb402 |
|
BLAKE2b-256 | 4389bf7c9fc7fba0362e4fdf14676ddb83564da2da5c895825c89ed737e52afa |