使用ceph-ansible完成ceph L版本的部署

1、配置/etc/hosts文件

vim /etc/hosts

2、配置yum源,保证部署过程中能够安装ceph,可以先验证一下yum源是否能够使用

yum -y install ceph

3、安装ceph-ansible ansible及添加秘钥互信

ssh-keygen -t rsa
ssh-copy-id root@主机名

安装ansible

yum install ansible -y

安装ceph-ansible

git clone https://github.com/ceph/ceph-ansible.git

4、更改配置文件
命令:

cd ceph-ansible/

在当前目录下新建hosts文件,并添加如下内容

vim hosts
[mons]
192.168.1.23
[osds]
192.168.1.23
[mgrs]
192.168.1.23

执行如下命令

mv site.yml.sample site.yml
vim group_vars/all.yml
---
ceph_origin: distro #(使用distro,则不会使用公网源)
ceph_repository: local 
ceph_stable_release: luminous #(想安装L版,写成 luminous 即可,确保你的repo中有此版本的包)
public_network: "192.168.1.0/24"
cluster_network: "192.168.1.0/24"
mon_host: 192.168.1.23
monitor_interface: eth0
devices:
 - '
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值