Add initial meta-stx to support StarlingX build
[pti/rtp.git] / meta-stx / recipes-support / puppet / files / puppet-drbd / 0003-drbd-parallel-to-serial-synchronization.patch
1 From a1186e3f68a338c575acdcf5cf41728a1b9ba2c1 Mon Sep 17 00:00:00 2001
2 From: Angie Wang <angie.Wang@windriver.com>
3 Date: Mon, 29 May 2017 10:20:13 -0400
4 Subject: [PATCH 1/1] drbd-parallel-to-serial-synchronization
5
6 ---
7  manifests/resource.pp    | 1 +
8  templates/header.res.erb | 3 +++
9  2 files changed, 4 insertions(+)
10
11 diff --git a/manifests/resource.pp b/manifests/resource.pp
12 index 10edc1a..d19ad8b 100644
13 --- a/manifests/resource.pp
14 +++ b/manifests/resource.pp
15 @@ -47,6 +47,7 @@ define drbd::resource (
16    $link_speed     = false,
17    $num_parallel   = false,
18    $rtt_ms         = false,
19 +  $resync_after   = undef,
20    $net_parameters = false,
21    $manage         = true,
22    $ha_primary     = false,
23 diff --git a/templates/header.res.erb b/templates/header.res.erb
24 index a3256a3..be53761 100644
25 --- a/templates/header.res.erb
26 +++ b/templates/header.res.erb
27 @@ -9,6 +9,9 @@ resource <%= @name %> {
28  <% if @rate -%>
29      resync-rate <%= @rate %>;
30  <% end -%>
31 +<% if @resync_after -%>
32 +    resync-after <%= @resync_after %>;
33 +<% end -%>
34  <% if @c_plan_ahead -%>
35      c-plan-ahead <%= @c_plan_ahead %>;
36  <% end -%>
37 -- 
38 1.8.3.1
39