For now, clone this repo and copy the modules contained in /sdp/library
to /usr/share/ansible/plugins/modules
or ~/.ansible/plugins/modules
. The resulting path should be ~/.ansible/plugins/modules/sdp/library/
.
- Python 2.7 or 3.1 (tested)
- Silk krest python module
sudo pip install krest
You will need to first export some credential vars to the shell.
export SDPUSER="admin"
export SDPPASS="password"
export SDPHOST="10.10.10.200"
You can then invoke the deployment meta in any desired playbook.
- hosts: localhost
tasks:
- name: "Create Host"
sdp_host:
name: "testhost"
type: "Linux"
- name: "Create Volume"
sdp_volume:
name: "testvol"
sizeInGB: 40
volumegroup: "testvg"
Please see docs for specific parameters for each module.