From 61734428c5e4e39e14e9ec0c52092e2d41d02db1 Mon Sep 17 00:00:00 2001 From: Travis Rhoden Date: Fri, 20 Feb 2015 16:42:23 -0500 Subject: [PATCH] Detect RHEL/RHCEPH for 'install --repo' Signed-off-by: Travis Rhoden --- ceph_deploy/install.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ceph_deploy/install.py b/ceph_deploy/install.py index 081e427..1606538 100644 --- a/ceph_deploy/install.py +++ b/ceph_deploy/install.py @@ -213,7 +213,17 @@ def install_repo(args): for hostname in args.host: LOG.debug('Detecting platform for host %s ...', hostname) - distro = hosts.get(hostname, username=args.username) + distro = hosts.get( + hostname, + username=args.username, + # XXX this should get removed once ceph packages are split for + # upstream. If default_release is True, it means that the user is + # trying to install on a RHEL machine and should expect to get RHEL + # packages. Otherwise, it will need to specify either a specific + # version, or repo, or a development branch. Other distro users should + # not see any differences. + use_rhceph=args.default_release, + ) rlogger = logging.getLogger(hostname) LOG.info( -- 2.47.3