a694c91b |
--- 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 |
9c2d317e |
@@ -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 |
a694c91b |
module.is_el = module.normalized_name in ['redhat', 'centos', 'fedora', 'scientific', 'oracle'] |
9c2d317e |
module.is_rpm = module.normalized_name in ['redhat', 'centos', |
a694c91b |
- 'fedora', 'scientific', 'suse', 'oracle']
+ 'fedora', 'scientific', 'suse', 'oracle', 'photon'] |
9c2d317e |
module.is_deb = not module.is_rpm
module.release = release
module.codename = codename |
a694c91b |
@@ -97,6 +97,7 @@ def _get_distro(distro, fallback=None, u |
9c2d317e |
'redhat': centos,
'fedora': fedora,
'suse': suse,
+ 'photon': photon,
}
if distro == 'redhat' and use_rhceph: |
a694c91b |
@@ -115,6 +116,8 @@ def _normalized_distro_name(distro):
return 'oracle' |
9c2d317e |
elif distro.startswith(('suse', 'opensuse')):
return 'suse'
+ elif distro.startswith('photon'):
+ return 'photon'
elif distro.startswith('centos'):
return 'centos'
elif distro.startswith('linuxmint'): |