]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
Detect RHEL/RHCEPH for 'install --repo' 263/head
authorTravis Rhoden <trhoden@redhat.com>
Fri, 20 Feb 2015 21:42:23 +0000 (16:42 -0500)
committerTravis Rhoden <trhoden@redhat.com>
Fri, 20 Feb 2015 21:42:23 +0000 (16:42 -0500)
Signed-off-by: Travis Rhoden <trhoden@redhat.com>
ceph_deploy/install.py

index 081e4270d6d2dbd75cc5d530952c17b9f958ea5b..160653869b22afb1c5a47939094b866f39062466 100644 (file)
@@ -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(