diff --git a/manifests/volume.pp b/manifests/volume.pp index 4e3d85da..0a1df987 100644 --- a/manifests/volume.pp +++ b/manifests/volume.pp @@ -2,6 +2,10 @@ # # @param stripe # the stripe count to use for a striped volume +# @param disperse +# the brick count to use for a disperse volume +# @param redundancy +# the failure tolerance to use for a disperse volume # @param replica # the replica count to use for a replica volume # @param arbiter @@ -50,6 +54,8 @@ Boolean $remove_options = false, Optional[Array] $options = undef, Optional[Integer] $stripe = undef, + Optional[Integer] $disperse = undef, + Optional[Integer] $redundancy = undef, Optional[Integer] $replica = undef, Optional[Integer] $arbiter = undef, ) { @@ -66,6 +72,18 @@ $_stripe = '' } + $_disperse = if $disperse { + "disperse ${disperse}" + } else { + '' + } + + $_redundancy = if $redundancy { + "redundancy ${redundancy}" + } else { + '' + } + $_replica = if $replica { "replica ${replica}" } else { @@ -90,6 +108,8 @@ $cmd_args = [ $_stripe, + $_disperse, + $_redundancy, $_replica, $_arbiter, $_transport,