File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,12 @@ def self.get_logical_volume_properties(volume_groups_line)
44
44
end
45
45
46
46
def create
47
- vgcreate ( @resource [ :name ] , *@resource . should ( :physical_volumes ) )
47
+ vgcreate_args = [ @resource [ :name ] , *@resource . should ( :physical_volumes ) ]
48
+ extent_args = @resource [ :extent_size ] . nil? ? [ ] : [ '-s' , @resource [ :extent_size ] ]
49
+
50
+ vgcreate_args . append ( *extent_args )
51
+
52
+ vgcreate ( *vgcreate_args )
48
53
end
49
54
50
55
def destroy
Original file line number Diff line number Diff line change 10
10
isnamevar
11
11
end
12
12
13
+ newparam ( :extent_size ) do
14
+ desc 'The physical extent size. Uses OS default if not provided. Only applicable on Linux.'
15
+ end
16
+
13
17
newproperty ( :physical_volumes , array_matching : :all ) do
14
18
desc "The list of physical volumes to be included in the volume group; this
15
19
will automatically set these as dependencies, but they must be defined elsewhere
You can’t perform that action at this time.
0 commit comments