Ansible modules for managing Dimension Data Cloud
A simple/trivial wrappper of CaaS API v2.x documented here
RFTM :-) : For each module, you should find a clear documentation. click on documentation links below.
- caas_credentials.py : Check credentials against MCP (documentation)
- caas_networkdomain.py : Create/Delete Network Domain on MCP (documentation)
- caas_vlan.py : Create/Delete VLAN on MCP (documentation)
- caas_server.py : Create/Delete Servers on MCP (documentation)
- caas_firewallrule.py : Create/Delete FireWall rules on MCP (documentation)
- caas_loadbalancer.py : Create/Delete Load Balancing config on MCP (documentation)
- caas_publicip.py : Create/Delete Public IP blocks on MCP (documentation)
- caas_nat.py : Create/Delete Network Address Translation rules on MCP (documentation)
- demo.yml : Sample Demo Ansible playbook file
- cleandemo.yml : Cleanning the Demo environment
- caas_credentials.yml : Sample file to fill with your own credentials
- Install Ansible on a clean machine (You can use a CENTOS7/64 template on MCP) 1. yum update yum install epel-release yum install ansible 2. yum install git asciidoc python python-sphinx 3. easy_install pip 4. pip install paramiko PyYAML Jinja2 httplib2 six 4. git clone git://github.com/ansible/ansible.git --recursive 5. source ./ansible/hacking/env-setup
- Download this repo : 1. git clone git://github.com/job-so/ansible.CaaS 2. ln -s /root/ansible.CaaS/library ansible/lib/ansible/modules/ extras/ cloud/dimension_data
- Create a credential files
- ansible-playbook demo.yml
- make --directory ~/ansible/ webdocs
- Rst Documentation : ~/ansible/docsite/
- HTML Dcumentation : cp ~/ansible/docsite/htmlout/caas_*.html ~/ansible.CaaS/docs/
- MARKDOWN Documentation : for f in ~/ansible/docsite/rst/caas_*_module.rst; do g=${f/.rst/.md}; h=${g/'/ansible/docsite/rst/'/'/ansible.CaaS/docs/'}; pandoc -s -o $h $f; done