ceph-ansible is a project maintained by ceph community that aims to install ceph. Using ceph-ansible requires making choices to get properly configured cluster.
ir-plugin-ceph wraps ceph-ansible [1] and facilitates ceph-ansible driven installation from as an infrared plugin. But is also can be used as a stand-alone ansible wrapper for ceph-ansible.
This code was verified to deploy ceph on:
- CentOS 7.3 (vm)
Since infrared updates ansible inventory file to contain provisioned ceph nodes in [ceph] group, all is needed is to add infrared puling and run the installation with enabled/disabled containers
infrared plugin add "https://review.gerrithub.io/rhos-infra/ir-plugin-ceph"
infrared install-ceph --containers-enabled true
or
infrared install-ceph --containers-enabled false
Note: currently --containers-enabled param makes no difference both for CentOS (ceph will be deployed uncontainerized).
Following steps are required
- provision vm
- scp ~/.ssh/id_rsa.pub key to the root@<vm_ip>:/root/.ssh/authorized_keys (assuming to other info is contained in /root/.ssh/authorized_keys !!)
- updates params.yml with your <vm_ip>
- run ansible-playbook -i hosts main.yml -e@params.yml