File 01_adjust_repos_false.patch of Package ceph-deploy
diff -r -u ceph-deploy-1.5.8.orginal/ceph_deploy/install.py ceph-deploy-1.5.8/ceph_deploy/install.py
--- ceph-deploy-1.5.8.orginal/ceph_deploy/install.py 2014-07-14 16:35:40.154974608 +0200
+++ ceph-deploy-1.5.8/ceph_deploy/install.py 2014-07-14 16:58:08.514030644 +0200
@@ -60,7 +60,12 @@
repo_url = os.environ.get('CEPH_DEPLOY_REPO_URL') or args.repo_url
gpg_url = os.environ.get('CEPH_DEPLOY_GPG_URL') or args.gpg_url
gpg_fallback = 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc'
-
+ if (args.adjust_repos == True) and not repo_url:
+ LOG.error('refusing to adjust repos on host: %s, without specified repository.' % (
+ hostname
+ )
+ )
+ continue
if gpg_url is None and repo_url:
LOG.warning('--gpg-url was not used, will fallback')
LOG.warning('using GPG fallback: %s', gpg_fallback)
@@ -376,7 +381,7 @@
release='firefly',
dev='master',
version_kind='stable',
- adjust_repos=True,
+ adjust_repos=False,
)
parser.add_argument(