Build Ceph Cluster with ceph-ansible

What is Ceph?

Ceph-ansible

$ssh-keygen 
$ssh-copy-id <hostname of other nodes>
  • stable-3.0 Supports Ceph versions jewel and luminous. This branch requires Ansible version 2.4.
  • stable-3.1 Supports Ceph versions luminous and mimic. This branch requires Ansible version 2.4.
  • stable-3.2 Supports Ceph versions luminous and mimic. This branch requires Ansible version 2.6.
  • stable-4.0 Supports Ceph version nautilus. This branch requires Ansible version 2.8.
  • stable-5.0 Supports Ceph version octopus. This branch requires Ansible version 2.9.
  • master Supports the master branch of Ceph. This branch requires Ansible version 2.9.
$git clone https://github.com/ceph/ceph-ansible.git 
$cd ceph-ansible
$git checkout stable-4.0
[mons] 
admin
node1
[osds]
admin
node1
node2
[mgrs]
node1
$cp site.yml.sample site.yml 
$cp group_vars/all.yml.sample group_vars/all.yml
ceph_origin: repository 
ceph_repository: community
ceph_stable_release: nautilus
public_network: "192.168.0.0/16"
cluster_network: "192.168.0.0/16"
monitor_interface: eth1
devices:
- '/dev/sda'
- '/dev/sdb'

OSD Configuration

$ansible-playbook site.yml

--

--

Astrophile | Technophile | Opensource enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store