|
1 | | -# This defined type will create a logical_volume with the name of |
2 | | -# the define and ensure a physical_volume, |
3 | | -# volume_group, and filesystem resource have been |
4 | | -# created on the block device supplied. |
| 1 | +# @summary Manage a logical_volume. |
| 2 | +# Ensures a physical_volume, volume_group, and filesystem resource |
| 3 | +# have been created on the block device supplied in the pv parameter. |
5 | 4 | # |
6 | 5 | # @param ensure Can only be set to cleaned, absent or present. A value of present will ensure that the |
7 | 6 | # physical_volume, volume_group, |
8 | 7 | # logical_volume, and filesystem resources are |
9 | 8 | # present for the volume. A value of cleaned will ensure that all |
10 | | -# of the resources are absent Warning this has a high potential |
11 | | -# for unexpected harm use it with caution. A value of absent |
| 9 | +# of the resources are absent. Warning: this has a high potential |
| 10 | +# for unexpected harm, so use it with caution. A value of absent |
12 | 11 | # will remove only the logical_volume resource from the system. |
13 | | -# The block device to ensure a physical_volume has been |
14 | | -# created on The volume_group to ensure is created on the |
15 | | -# physical_volume provided by the pv parameter. |
16 | 12 | # |
17 | | - |
18 | 13 | # @param fstype The type of filesystem to create on the logical |
19 | 14 | # volume. |
20 | | - |
| 15 | +# |
21 | 16 | # @param pv path to physcial volume |
22 | | - |
| 17 | +# |
23 | 18 | # @param vg value of volume group |
24 | | - |
| 19 | +# |
25 | 20 | # @param size The size the logical_voluem should be. |
26 | | - |
| 21 | +# |
27 | 22 | # @param extents The number of logical extents to allocate for the new logical volume. |
28 | 23 | # Set to undef to use all available space |
29 | | - |
| 24 | +# |
30 | 25 | # @param initial_size The initial size of the logical volume. |
31 | 26 | # This will only apply to newly-created volumes |
32 | 27 | # |
33 | | -# === Examples |
34 | | -# |
35 | | -# Provide some examples on how to use this type: |
| 28 | +# @example Basic usage |
36 | 29 | # |
37 | 30 | # lvm::volume { 'lv_example0': |
38 | 31 | # vg => 'vg_example0', |
39 | 32 | # pv => '/dev/sdd1', |
40 | 33 | # fstype => 'ext4', |
41 | | -# size => '100GB', |
| 34 | +# size => '100GB', |
42 | 35 | # } |
43 | 36 | # |
44 | | -# === Copyright |
45 | | -# |
46 | | -# See README.markdown for the module author information. |
47 | | -# |
48 | | -# === License |
49 | | -# |
50 | | -# This file is part of the puppetlabs/lvm puppet module. |
51 | | -# |
52 | | -# puppetlabs/lvm is free software: you can redistribute it and/or modify |
53 | | -# it under the terms of the GNU General Public License as published by the |
54 | | -# Free Software Foundation, version 2 of the License. |
55 | | -# |
56 | | -# puppetlabs/lvm is distributed in the hope that it will be useful, but |
57 | | -# WITHOUT ANY WARRANTY; without even the implied warranty of |
58 | | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
59 | | -# Public License for more details. |
60 | | -# |
61 | | -# You should have received a copy of the GNU General Public License along |
62 | | -# with puppetlabs/lvm. If not, see http://www.gnu.org/licenses/. |
63 | | -# |
64 | 37 | define lvm::volume ( |
65 | 38 | Enum['present', 'absent', 'cleaned'] $ensure, |
66 | 39 | Stdlib::Absolutepath $pv, |
|
0 commit comments