How to Prepare and Use Ceph Ansible
Introduction
Should you want to reconfigure your Private Cloud's Ceph cluster, you can do so using Ceph Ansible. In this guide, we explain how to prepare an environment from which Ceph Ansible can be used. Making specific configuration changes to your Ceph cluster is outside the scope of this guide.
Prerequisites
Root Access to OpenStack Control Plane
Root access to your cloud's control plane nodes is required.
Path to the Ceph Configuration Files
- Ceph Ansible Inventory
/etc/fm-deploy/ceph-inventory.yml
- Ceph Ansible Config
/opt/ceph-ansible/group_vars/all.yml
Preparation
To prepare Ceph Ansible:
docker cp fm-deploy:/opt/ceph-ansible /opt/ceph-ansible
chmod 700 /opt/ceph-ansible
cd /opt/ceph-ansible
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install six
Deploy a Ceph Cluster:
ansible-playbook \
-i /etc/fm-deploy/ceph-inventory.yml \
--private-key /root/.ssh/fm-deploy \
/opt/ceph-ansible/site.yml
Attempt to repair a broken Ceph cluster:
ansible-playbook \
-i /etc/fm-deploy/ceph-inventory.yml \
--private-key /root/.ssh/fm-deploy \
/opt/ceph-ansible/site.yml