CEPH本地源

下载包


down.file
http://mirrors.163.com/ceph/rpm-jewel/el7/x86_64/ceph-10.2.7-0.el7.x86_64.rpm
http://mirrors.163.com/ceph/rpm-jewel/el7/x86_64/ceph-base-10.2.7-0.el7.x86_64.rpm
http://mirrors.163.com/ceph/rpm-jewel/el7/x86_64/ceph-common-10.2.7-0.el7.x86_64.rpm
http://mirrors.163.com/ceph/rpm-jewel/el7/x86_64/ceph-debuginfo-10.2.7-0.el7.x86_64.rpm
#wget -e robots=off -r -p -np -i down.file
下载epel
#wget -np -nH --cut-dirs=0 -r -c -L --exclude-directories=repodata --accept=rpm,zip,gz,xml
http://mirrors.neusoft.edu.cn/epel/7/x86_64/

下载keys
在下载目录keys里

配置源 安装

centos: /usr/lib/python2.7/site-packages/ceph_deploy
ubuntu: /usr/lib/python2.7/dist-packages/ceph_deploy

修改deploy

# vi /usr/lib/python2.7/site-packages/ceph_deploy/hosts/centos/install.py
if adjust_repos:                                                            
        if version_kind in ['stable', 'testing']:                               
            distro.packager.add_repo_gpg_key(gpg.url(key))                      
                                                                            
            if version_kind == 'stable':                                        
                #url = 'https://download.ceph.com/rpm-{version}/{repo}/'.format( 
                url = 'http://node1/ceph/rpm-{version}/{repo}/'.format( 
                    version=version,                                            
                    repo=repo_part,                                             
                    )    

 

# vi /usr/lib/python2.7/site-packages/ceph_deploy/util/constants.py
#gpg_key_base_url = "download.ceph.com/keys/"
gpg_key_base_url = "node1/ceph/keys/"

 

# vi /usr/lib/python2.7/site-packages/ceph_deploy/util/paths/gpg.py
#def url(key_type, protocol="https"):
def url(key_type, protocol="http"):

 

转载于:https://my.oschina.net/banwh/blog/1475164

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值