File tree 2 files changed +15
-14
lines changed
2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 15
15
}
16
16
}
17
17
18
- create_resources(' lvm::volume_group' , $volume_groups )
18
+ $volume_groups .each |String $vg , Hash $vgdata | {
19
+ lvm::volume_group { $vg:
20
+ * => $vgdata ,
21
+ }
22
+ }
19
23
}
Original file line number Diff line number Diff line change 22
22
Boolean $followsymlinks = false ,
23
23
) {
24
24
if $physical_volumes .is_a(Hash) {
25
- create_resources(
26
- ' lvm::physical_volume' ,
27
- $physical_volumes ,
28
- {
29
- ensure => $ensure ,
25
+ $physical_volumes .each |String $pv , Hash $pvdata | {
26
+ lvm::physical_volume { $pv:
27
+ ensure => $ensure ,
28
+ * => $pvdata ,
30
29
}
31
- )
32
- }
33
- else {
30
+ }
31
+ } else {
34
32
physical_volume { $physical_volumes:
35
33
ensure => $ensure ,
36
34
}
43
41
followsymlinks => $followsymlinks ,
44
42
}
45
43
46
- create_resources(
47
- ' lvm::logical_volume' ,
48
- $logical_volumes ,
49
- {
44
+ $logical_volumes .each |String $lv , Hash $lvdata | {
45
+ lvm::logical_volume { $lv:
50
46
ensure => $ensure ,
51
47
volume_group => $name ,
48
+ * => $lvdata ,
52
49
}
53
- )
50
+ }
54
51
}
You can’t perform that action at this time.
0 commit comments