Skip to content

Commit 48bd11d

Browse files
committed
volume: docs cleanup
1 parent 114afda commit 48bd11d

File tree

1 file changed

+12
-39
lines changed

1 file changed

+12
-39
lines changed

manifests/volume.pp

Lines changed: 12 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,39 @@
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.
54
#
65
# @param ensure Can only be set to cleaned, absent or present. A value of present will ensure that the
76
# physical_volume, volume_group,
87
# logical_volume, and filesystem resources are
98
# 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
1211
# 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.
1612
#
17-
1813
# @param fstype The type of filesystem to create on the logical
1914
# volume.
20-
15+
#
2116
# @param pv path to physcial volume
22-
17+
#
2318
# @param vg value of volume group
24-
19+
#
2520
# @param size The size the logical_voluem should be.
26-
21+
#
2722
# @param extents The number of logical extents to allocate for the new logical volume.
2823
# Set to undef to use all available space
29-
24+
#
3025
# @param initial_size The initial size of the logical volume.
3126
# This will only apply to newly-created volumes
3227
#
33-
# === Examples
34-
#
35-
# Provide some examples on how to use this type:
28+
# @example Basic usage
3629
#
3730
# lvm::volume { 'lv_example0':
3831
# vg => 'vg_example0',
3932
# pv => '/dev/sdd1',
4033
# fstype => 'ext4',
41-
# size => '100GB',
34+
# size => '100GB',
4235
# }
4336
#
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-
#
6437
define lvm::volume (
6538
Enum['present', 'absent', 'cleaned'] $ensure,
6639
Stdlib::Absolutepath $pv,

0 commit comments

Comments
 (0)