Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
mon_path = join(base_path, 'mon')
mds_path = join(base_path, 'mds')
+
+osd_path = join(base_path, 'osd')
--- /dev/null
+"""
+Comosd paths for osd, based on the constant file paths defined in
+``ceph_deploy.util.constants``.
+All functions return a string representation of the absolute path
+construction.
+"""
+from os.path import join
+from ceph_deploy.util import constants
+
+
+def base(cluster):
+ cluster = "%s-" % cluster
+ return join(constants.osd_path, cluster)