--- a/ceph_deploy/hosts/__init__.py 2017-01-03 21:38:42.000000000 +0000 +++ b/ceph_deploy/hosts/__init__.py 2017-03-30 23:27:32.453109790 +0000 @@ -7,7 +7,7 @@ on the type of distribution/version we a import logging from ceph_deploy import exc from ceph_deploy.util import versions -from ceph_deploy.hosts import debian, centos, fedora, suse, remotes, rhel +from ceph_deploy.hosts import debian, centos, fedora, suse, remotes, rhel, photon from ceph_deploy.connection import get_connection logger = logging.getLogger() @@ -68,7 +68,7 @@ def get(hostname, module.distro = module.normalized_name module.is_el = module.normalized_name in ['redhat', 'centos', 'fedora', 'scientific', 'oracle'] module.is_rpm = module.normalized_name in ['redhat', 'centos', - 'fedora', 'scientific', 'suse', 'oracle'] + 'fedora', 'scientific', 'suse', 'oracle', 'photon'] module.is_deb = not module.is_rpm module.release = release module.codename = codename @@ -97,6 +97,7 @@ def _get_distro(distro, fallback=None, u 'redhat': centos, 'fedora': fedora, 'suse': suse, + 'photon': photon, } if distro == 'redhat' and use_rhceph: @@ -115,6 +116,8 @@ def _normalized_distro_name(distro): return 'oracle' elif distro.startswith(('suse', 'opensuse')): return 'suse' + elif distro.startswith('photon'): + return 'photon' elif distro.startswith('centos'): return 'centos' elif distro.startswith('linuxmint'):