Add initial meta-stx to support StarlingX build
[pti/rtp.git] / meta-stx / recipes-support / puppet / files / puppet-ceph / 0004-US92424-Add-OSD-support-for-persistent-naming.patch
1 From 7a4c325194885dc43fc87f7094873e0067801652 Mon Sep 17 00:00:00 2001
2 From: Robert Church <robert.church@windriver.com>
3 Date: Thu, 13 Apr 2017 20:31:21 -0500
4 Subject: [PATCH] US92424: Add OSD support for persistent naming
5
6 This allows the manifest to provide udev generated /dev/disk/by-* links
7 to configure the OSDs without requiring any additional changes. The
8 'readlink -f' will produce the currently enumerated device node
9 associated with udev link.
10 ---
11  manifests/osd.pp | 2 +-
12  1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/manifests/osd.pp b/manifests/osd.pp
15 index 2187361..d9cf5b1 100644
16 --- a/manifests/osd.pp
17 +++ b/manifests/osd.pp
18 @@ -61,7 +61,7 @@ define ceph::osd (
19  
20      include ::ceph::params
21  
22 -    $data = $name
23 +    $data = generate('/bin/bash','-c',"/bin/readlink -f ${name}")
24  
25      if $cluster {
26        $cluster_name = $cluster
27 -- 
28 2.7.4
29