From: Alfredo Deza Date: Tue, 1 Apr 2014 19:03:11 +0000 (-0400) Subject: raise if platform is not supported X-Git-Tag: v1.5.0~16^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5d365477a64a73bb5d0b624d45aa5f2cc9de586d;p=ceph-deploy.git raise if platform is not supported Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/calamari.py b/ceph_deploy/calamari.py index 8db935c..53f882a 100644 --- a/ceph_deploy/calamari.py +++ b/ceph_deploy/calamari.py @@ -1,5 +1,5 @@ import logging -from ceph_deploy import hosts +from ceph_deploy import hosts, exc from ceph_deploy.lib.remoto import process @@ -36,6 +36,13 @@ def connect(args): for hostname in args.hosts: distro = hosts.get(hostname, username=args.username) + if not distro_is_supported(distro.normalized_name): + raise exc.UnsupportedPlatform( + distro.distro_name, + distro.codename, + distro.release + ) + LOG.info( 'Distro info: %s %s %s', distro.name, @@ -63,6 +70,7 @@ def connect(args): distro.pkg.install(distro, 'salt-minion') + # redhat/centos need to get the service started if distro.normalized_name in ['redhat', 'centos']: process.run( distro.conn,