File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change 6
6
Enum['present', 'absent'] $ensure = present ,
7
7
Hash $logical_volumes = {},
8
8
Boolean $followsymlinks = false ,
9
+ Boolean $manage_pv = true ,
9
10
) {
10
11
11
- if is_hash($physical_volumes ) {
12
- create_resources(
13
- ' lvm::physical_volume' ,
14
- $physical_volumes ,
15
- {
16
- ensure => $ensure ,
12
+ if $manage_pv {
13
+ if is_hash($physical_volumes ) {
14
+ create_resources(
15
+ ' lvm::physical_volume' ,
16
+ $physical_volumes ,
17
+ {
18
+ ensure => $ensure ,
19
+ }
20
+ )
21
+ }
22
+ else {
23
+ physical_volume { $physical_volumes:
24
+ ensure => $ensure ,
17
25
}
18
- )
19
- }
20
- else {
21
- physical_volume { $physical_volumes:
22
- ensure => $ensure ,
23
26
}
24
27
}
25
28
26
-
27
29
volume_group { $name:
28
30
ensure => $ensure ,
29
31
createonly => $createonly ,
You can’t perform that action at this time.
0 commit comments