import logging
-from ceph_deploy import hosts
+from ceph_deploy import hosts, exc
from ceph_deploy.lib.remoto import process
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,
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,