From 5d365477a64a73bb5d0b624d45aa5f2cc9de586d Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Tue, 1 Apr 2014 15:03:11 -0400 Subject: [PATCH] raise if platform is not supported Signed-off-by: Alfredo Deza --- ceph_deploy/calamari.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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, -- 2.47.3