This repository provides sample playbooks that demonstrate how to use Ansible with the Catalyst Cloud (https://catalystcloud.nz).
Would you like to learn more?
- The documentation for the Catalyst Cloud can be found at: http://docs.catalystcloud.nz
- The documentation for Ansible can be found at: http://docs.ansible.com/ansible/index.html
The install-ansible.sh
script helps you to easily install Ansible (latest or
stable) and the dependencies required to interact with the Catalyst Cloud
(OpenStack client tools, shade) in a
virtual environment.
Run install-ansible.sh -v latest
to install the latest version of Ansible.
Run the source command printed by the script to activate the virtual
environment and set up Ansible environment variables.
Run which ansible
and ansible --version
to confirm the correct version of
Ansible is being used.
.. Note::
This installer no longer supports Python 2.x, as it has been deprecated and is nearing end of life.
The cookbooks
directory provides code examples that demonstrate how to
perform common operation with Ansible, such as loops, dict lookups, etc.
All other directories are named after specific services provided by the Catalyst Cloud and illustrate how to use them via Ansible.