An example Ansible project that demonstrates provisioning, configuring, and managing a Ceph cluster in an OpenStack environment.
- This project is meant for demonstration purposes only.
- The
library
andplugins
directories are from theceph-ansible
project. - This is a work in progress
This project leverages the roles published by the ceph/ceph-ansible project in order to deploy a Ceph storage cluster:
The main goal of the project is to demonstrate how role-reuse can be accomplished. The strategy used here is to keep track of all required roles in requirements.yml. Local usage and development of this project should install roles to the galaxy-roles
directory, which is ignored by gitignore.
Ansible Tower will automatically download all roles contained in requirements.yml
as part of a project sync.
- Install role dependencies
ansible-galaxy install -r requirements.yml -p galaxy-roles -f
- Create a
group_vars/all/rhn.yml
containing required variables from wtcross/ansible-examples-role-base - Modify
group_vars/all/openstack.yml
to have the correct settings - Download your OpenStack RC File
- run
source /path/to/your/openstackrc.sh
- run
ansible-playbook create-ceph-cluster.yml
- Create a project for
https://github.com/wtcross/ansible-tower-ceph
- Create a credential for your OpenStack environment
- Create a job template for the
create-ceph-cluster.yml
playbook