|
| 1 | +# @summary Manage a logical volume. |
| 2 | +# |
1 | 3 | # @param volume_group The volume group name associated with this logical volume. |
2 | 4 | # This will automatically set this volume group as a dependency, |
3 | 5 | # but it must be defined elsewhere using the volume_group resource type. |
| 6 | +# |
4 | 7 | # @param size Configures the size of the filesystem. Supports filesystem resizing. The size will be rounded up to the nearest multiple of |
5 | 8 | # the partition size. |
| 9 | +# |
6 | 10 | # @param initial_size The initial size of the logical volume. This will only apply to newly-created volumes |
7 | 11 | # |
8 | 12 | # @param ensure |
| 13 | +# |
9 | 14 | # @param options Params for the mkfs command |
10 | 15 | # |
11 | 16 | # @param pass |
| 17 | +# |
12 | 18 | # @param dump |
| 19 | +# |
13 | 20 | # @param fs_type The file system type. eg. ext3. |
| 21 | +# |
14 | 22 | # @param mkfs_options |
| 23 | +# |
15 | 24 | # @param mountpath |
| 25 | +# |
16 | 26 | # @param mountpath_require |
| 27 | +# |
17 | 28 | # @param mounted If puppet should mount the volume. This only affects what puppet will do, and not what will be mounted at boot-time. |
| 29 | +# |
18 | 30 | # @param createfs |
| 31 | +# |
19 | 32 | # @param extents The number of logical extents to allocate for the new logical volume. Set to undef to use all available space |
| 33 | +# |
20 | 34 | # @param stripes The number of stripes to allocate for the new logical volume. |
21 | 35 | # |
22 | 36 | # @param stripesize The stripesize to use for the new logical volume. |
|
27 | 41 | # (if the LV found is larger then the size requests this is just logged not causing a FAIL) |
28 | 42 | # |
29 | 43 | # @param size_is_minsize Lists strings for access control for connection method, users, databases, IPv4 addresses; |
| 44 | +# |
30 | 45 | # @param type Configures the logical volume type. AIX only |
31 | 46 | # |
32 | 47 | # @param thinpool - Set to true to create a thin pool or to pool name to create thin volume |
| 48 | +# |
33 | 49 | # @param poolmetadatasize Set the initial size of the logical volume pool metadata on creation |
34 | | - |
| 50 | +# |
35 | 51 | # @param mirror The number of mirrors of the volume. |
| 52 | +# |
36 | 53 | # @param mirrorlog How to store the mirror log (Allowed values: core, disk, mirrored). |
37 | | - |
| 54 | +# |
38 | 55 | # @param no_sync An optimization in lvcreate, at least on Linux. |
39 | | - |
| 56 | +# |
40 | 57 | # @param region_size A mirror is divided into regions of this size (in MB), the mirror log uses this granularity to track which regions |
41 | | -# are in sync. |
42 | | -# CAN NOT BE CHANGED on already mirrored volume. |
| 58 | +# are in sync. Cannot be changed on already mirrored volume. |
43 | 59 | # Take your mirror size in terabytes and round up that number to the next power of 2, using that number as the -R argument |
44 | | - |
45 | | -# @param alloc Selects the allocation policy when a command needs to allocate Physical Extents from the Volume Group. Allowed Values: |
46 | | -# :anywhere |
47 | | -# :contiguous |
48 | | -# :cling |
49 | | -# :inherit |
50 | | -# :normal |
51 | | - |
| 60 | +# |
| 61 | +# @param alloc The allocation policy when a command needs to allocate Physical Extents from the Volume Group. |
| 62 | +# |
52 | 63 | # @param yes_flag If set to true, do not prompt for confirmation interactively but always assume the answer yes. |
53 | | - |
54 | 64 | # |
55 | 65 | define lvm::logical_volume ( |
56 | 66 | String[1] $volume_group, |
|
0 commit comments