File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 22#
33# @param stripe
44# the stripe count to use for a striped volume
5+ # @param disperse
6+ # the brick count to use for a disperse volume
7+ # @param redundancy
8+ # the failure tolerance to use for a disperse volume
59# @param replica
610# the replica count to use for a replica volume
711# @param arbiter
5054 Boolean $remove_options = false ,
5155 Optional[Array] $options = undef ,
5256 Optional[Integer] $stripe = undef ,
57+ Optional[Integer] $disperse = undef ,
58+ Optional[Integer] $redundancy = undef ,
5359 Optional[Integer] $replica = undef ,
5460 Optional[Integer] $arbiter = undef ,
5561) {
6672 $_stripe = ' '
6773 }
6874
75+ $_disperse = if $disperse {
76+ " disperse ${disperse} "
77+ } else {
78+ ' '
79+ }
80+
81+ $_redundancy = if $redundancy {
82+ " redundancy ${redundancy} "
83+ } else {
84+ ' '
85+ }
86+
6987 $_replica = if $replica {
7088 " replica ${replica} "
7189 } else {
90108
91109 $cmd_args = [
92110 $_stripe,
111+ $_disperse,
112+ $_redundancy,
93113 $_replica,
94114 $_arbiter,
95115 $_transport,
You can’t perform that action at this time.
0 commit comments