ceph - ansible role (official)

Thank you for reading this post, don't forget to subscribe!

[root@ceph3 ~]# cat /etc/hosts
192.168.1.201 ceph1
192.168.1.202 ceph2
192.168.1.203 ceph3

[root@ansible ~]# yum install sshpass git

[root@ansible ~]# git clone https://github.com/ceph/ceph-ansible

[root@ansible ~]# cd ceph-ansible

git checkout stable-4.0

pip install -r requirements.txt
cp site.yml.sample site.yml
cp group_vars/all.yml.sample group_vars/all.yml
cp group_vars/mons.yml.sample group_vars/mons.yml
cp group_vars/osds.yml.sample group_vars/osds.yml

[root@ansible ceph-ansible]# cat inventory.txt

 

 

пра­вим основ­ной файл с переменными:
[root@ansible ceph-ansible]# cat group_vars/all.yml | grep -v ^# | grep -v ^$

 

 

пра­вим osds.yml ука­зы­вая наши дис­ки /dev/sdb

[root@ansible ceph-ansible]# cat group_vars/osds.yml | grep -v ^# | grep -v ^$

 

 

запус­ка­ем:

ansible-playbook site.yml -i inventory.txt --ask-pass

ждём, по идее всё долж­но быть ок.

мы ещё вклю­ча­ли уста­нов­ку dashboard, проверим:
https://192.168.1.201:8443/#/dashboard

и grafana

https://192.168.1.201:3000/?orgId=1