6f6345c9da
Story: 2003389 Task: 24503 Change-Id: I06ee6bd6563b44c28aff7e23adf0f442466481af Signed-off-by: chenyan <yan.chen@intel.com>
30 lines
876 B
Diff
30 lines
876 B
Diff
From 7a4c325194885dc43fc87f7094873e0067801652 Mon Sep 17 00:00:00 2001
|
|
From: Robert Church <robert.church@windriver.com>
|
|
Date: Thu, 13 Apr 2017 20:31:21 -0500
|
|
Subject: [PATCH] US92424: Add OSD support for persistent naming
|
|
|
|
This allows the manifest to provide udev generated /dev/disk/by-* links
|
|
to configure the OSDs without requiring any additional changes. The
|
|
'readlink -f' will produce the currently enumerated device node
|
|
associated with udev link.
|
|
---
|
|
manifests/osd.pp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/manifests/osd.pp b/manifests/osd.pp
|
|
index 2187361..d9cf5b1 100644
|
|
--- a/manifests/osd.pp
|
|
+++ b/manifests/osd.pp
|
|
@@ -61,7 +61,7 @@ define ceph::osd (
|
|
|
|
include ::ceph::params
|
|
|
|
- $data = $name
|
|
+ $data = generate('/bin/bash','-c',"/bin/readlink -f ${name}")
|
|
|
|
if $cluster {
|
|
$cluster_name = $cluster
|
|
--
|
|
2.7.4
|
|
|