Skip to content

Commit 8e3a586

Browse files
authored
Merge pull request #331 from kenyon/docs-fixes
Documentation cleanup
2 parents aae2e44 + cc6d4be commit 8e3a586

18 files changed

+310
-379
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Publish module"
22

33
on:
44
workflow_dispatch:
5-
5+
66
jobs:
77
release:
88
uses: "puppetlabs/cat-github-actions/.github/workflows/module_release.yml@main"

.rubocop.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ require:
55
AllCops:
66
NewCops: enable
77
DisplayCopNames: true
8-
TargetRubyVersion: '2.7'
8+
TargetRubyVersion: '2.6'
99
Include:
1010
- "**/*.rb"
1111
Exclude:
@@ -529,6 +529,8 @@ Lint/DuplicateBranch:
529529
Enabled: false
530530
Lint/DuplicateMagicComment:
531531
Enabled: false
532+
Lint/DuplicateMatchPattern:
533+
Enabled: false
532534
Lint/DuplicateRegexpCharacterClassElement:
533535
Enabled: false
534536
Lint/EmptyBlock:
@@ -645,6 +647,8 @@ Style/ComparableClamp:
645647
Enabled: false
646648
Style/ConcatArrayLiterals:
647649
Enabled: false
650+
Style/DataInheritance:
651+
Enabled: false
648652
Style/DirEmpty:
649653
Enabled: false
650654
Style/DocumentDynamicEvalDefinition:
@@ -713,6 +717,8 @@ Style/RedundantHeredocDelimiterQuotes:
713717
Enabled: false
714718
Style/RedundantInitialize:
715719
Enabled: false
720+
Style/RedundantLineContinuation:
721+
Enabled: false
716722
Style/RedundantSelfAssignmentBranch:
717723
Enabled: false
718724
Style/RedundantStringEscape:

Gemfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,15 @@ group :development do
2222
gem "racc", '~> 1.4.0', require: false if Gem::Requirement.create(['>= 2.7.0', '< 3.0.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
2323
gem "voxpupuli-puppet-lint-plugins", '~> 5.0', require: false
2424
gem "facterdb", '~> 1.18', require: false
25-
gem "metadata-json-lint", '~> 3.0', require: false
25+
gem "metadata-json-lint", '~> 4.0', require: false
2626
gem "puppetlabs_spec_helper", '~> 6.0', require: false
2727
gem "rspec-puppet-facts", '~> 2.0', require: false
28-
gem "codecov", '~> 0.2', require: false
2928
gem "dependency_checker", '~> 1.0.0', require: false
3029
gem "parallel_tests", '= 3.12.1', require: false
3130
gem "pry", '~> 0.10', require: false
32-
gem "simplecov-console", '~> 0.5', require: false
31+
gem "simplecov-console", '~> 0.9', require: false
3332
gem "puppet-debugger", '~> 1.0', require: false
34-
gem "rubocop", '= 1.48.1', require: false
33+
gem "rubocop", '~> 1.50.0', require: false
3534
gem "rubocop-performance", '= 1.16.0', require: false
3635
gem "rubocop-rspec", '= 2.19.0', require: false
3736
gem "puppet-strings", '~> 4.0', require: false

README.md

Lines changed: 11 additions & 155 deletions
Original file line numberDiff line numberDiff line change
@@ -168,165 +168,13 @@ volume_group { "myvg":
168168
}
169169
```
170170

171-
## Type Documentation
172-
173-
### filesystem
174-
175-
* name (Parameter) (Namevar)
176-
* ensure (Property)
177-
* fs_type (Parameter) - The file system type. eg. ext3.
178-
* mkfs_cmd (Parameter) - Command to use to create the file system. Defaults to `mkswap` for `fs_type=swap`, otherwise `mkfs.{fs_type}`
179-
* options (Parameter) - Params for the mkfs command. eg. `-l internal,agcount=x`
180-
181-
### logical_volume
182-
183-
* name (Parameter) (Namevar) - The name of the logical volume. This is the unqualified name and will be automatically added to the volume group’s device path (e.g., ‘/dev/$vg/$lv’).
184-
* ensure (Property)
185-
* alloc (Parameter) - Selects the allocation policy when a command needs to allocate Physical Extents from the Volume Group. Allowed Values:
186-
- `:anywhere`
187-
- `:contiguous`
188-
- `:cling`
189-
- `:inherit`
190-
- `:normal`
191-
* extents (Parameter) - The number of logical extents to allocate for the new logical volume. Set to undef to use all available space
192-
* initial_size (Parameter) - The initial size of the logical volume. This will only apply to newly-created volumes
193-
* minor (Parameter) - Set the minor number
194-
* mirror (Property) - The number of mirrors of the volume.
195-
* mirrorlog (Property) - How to store the mirror log (core, disk, mirrored). Allowed Values:
196-
- `:core`
197-
- `:disk`
198-
- `:mirrored`
199-
* mounted - If puppet should mount the volume. This only affects what puppet will do, and not what will be mounted at boot-time.
200-
* no_sync (Parameter) - An optimization in lvcreate, at least on Linux.
201-
* persistent (Parameter) - Set to true to make the block device persistent
202-
* poolmetadatasize (Parameter) - Set the initial size of the logical volume pool metadata on creation
203-
* readahead (Parameter) - The readahead count to use for the new logical volume.
204-
* region_size (Parameter) - A mirror is divided into regions of this size (in MB), the mirror log uses this granularity to track which regions are in sync. CAN NOT BE CHANGED on already mirrored volume. Take your mirror size in terabytes and round up that number to the next power of 2, using that number as the -R argument.
205-
* size (Property) - The size of the logical volume. Set to undef to use all available space
206-
* size_is_minsize (Parameter) Default value: `false` - Set to true if the ‘size’ parameter specified, is just the minimum size you need (if the LV found is larger then the size requests this is just logged not causing a FAIL)
207-
* stripes (Parameter) - The number of stripes to allocate for the new logical volume.
208-
* stripesize (Parameter) - The stripesize to use for the new logical volume.
209-
* thinpool (Parameter) - Default value: `false` - Set to true to create a thin pool or to pool name to create thin volume
210-
* volume_group (Parameter) - The volume group name associated with this logical volume. This will automatically set this volume group as a dependency, but it must be defined elsewhere using the volume_group resource type.
211-
* yes_flag (Parameter) - Default value: `false` - If set to true, do not prompt for confirmation interactively but always assume the answer yes.
212-
213-
### physical_volume
214-
215-
* name (Parameter) (Namevar)
216-
* ensure (Property) -
217-
* force (Parameter) Default value: `false` - Force the creation without any confirmation. Allowed Values:
218-
- `true`
219-
- `false`
220-
* unless_vg (Parameter) - Do not do anything if the VG already exists. The value should be the name of the volume group to check for.
221-
222-
### volume_group
223-
224-
* name (Parameter) (Namevar) - The name of the volume group.
225-
* ensure (Property)
226-
* createonly (Parameter) Default value: false - If set to true the volume group will be created if it does not exist. If the volume group does exist no action will be taken. Defaults to `false`. Allowed Values:
227-
- `true`
228-
- `false`
229-
* followsymlinks (Parameter) - If set to true all current and wanted values of the physical_volumes property will be followed to their real files on disk if they are in fact symlinks. This is useful to have Puppet determine what the actual PV device is if the property value is a symlink, like '/dev/disk/by-path/xxxx -> ../../sda'. Defaults to `false`.
230-
* physical_volumes (Property) - The list of physical volumes to be included in the volume group; this will automatically set these as dependencies, but they must be defined elsewhere using the physical_volume resource type.
231-
232-
## AIX Specific Type Documentation
233-
234-
There are a number of AIX specific parameters and properties. The regular
235-
parameters documented above also apply to AIX systems.
236-
237-
### filesystem
238-
239-
* accounting (Parameter) - Specify accounting subsystem support, Allowed Values:
240-
* `true`
241-
* `false`
242-
* ag_size (Parameter) - Specify the allocation group size in megabytes, Allowed Values:
243-
* `/\d+/`
244-
* agblksize (Parameter) - JFS2 block size in bytes, Allowed Values:
245-
* `/\d+/`
246-
* atboot (Parameter) - Specify whether the file system is mounted at boot time, Allowed Values:
247-
* `true`
248-
* `false`
249-
* compress (Parameter) - Data compression, LZ or no. Allowed Values:
250-
* `:LG`
251-
* `:no`
252-
* device (Parameter) - Device to create the filesystem on, this can be a device or a logical volume.
253-
* encrypted (Parameter) - Specify and encrypted filesystem. Allowed Values:
254-
* `true`
255-
* `false`
256-
* extended_attributes (Parameter) - Format to be used to store extended attributes. Allowed Values:
257-
* `:v1`
258-
* `:v2`
259-
* frag (Parameter) - JFS fragment size in bytes. Allowed Values:
260-
* `/\d+/`
261-
* initial_size (Parameter) - Initial size of the filesystem, Used only for resource creation, when using this option Puppet will not manage or maintain the size. To resize filesystems see the size property.
262-
* isnapshot (Parameter) - Specify whether the filesystem supports internal snapshots, Allowed Values:
263-
* `true`
264-
* `false`
265-
* large_files (Parameter) - Large file enabled file system. Allowed Values:
266-
* `true`
267-
* `false`
268-
* log_partitions (Parameter) - Specify the size of the log logical volume as number of logical partitions,
269-
* logname (Parameter) - Configure the log logical volume.
270-
* logsize (Parameter) - Size for an inline log in MB, Allowed Values:
271-
* `/\d+/`
272-
* maxext (Parameter) - Size of a file extent in file system blocks, Allowed Values:
273-
* `/\d+/`
274-
* mount_options (Parameter) - Specify the options to be passed to the mount command.
275-
* mountgroup (Parameter) - Mount group for the filesystem,
276-
* mountguard (Parameter) - Enable the mountguard. Allowed Values:
277-
* `true`
278-
* `false`
279-
* nbpi (Parameter) - Bytes per inode. Allowed Values:
280-
* `/\d+/`
281-
* nodename (Parameter) - Specify the remote host where the filesystem resides.
282-
* perms (Parameter) - Permissions for the filesystem, Allowed Values:
283-
* `:ro`
284-
* `:rw`
285-
* size (Property) - Configures the size of the filesystem. Supports filesystem resizing. The size will be rounded up to the nearest multiple of the partition size.
286-
* vix (Parameter) - Specify that the file system can allocate inode extents smaller than the default, Allowed Values:
287-
* `true`
288-
* `false`
289-
* volume_group (Parameter) - Volume group that the file system should be created on.
290-
291-
### logical_volume
292-
293-
* range (Parameter) - Sets the inter-physical volume allocation policy. AIX only
294-
* type (Parameter) - Configures the logical volume type. AIX only
295-
296-
## Functions
297-
298-
`lvm::bytes_to_size`: Converts a number of bytes to a size format that LVM can understand e.g. `lvm::bytes_to_size(214748364800)` would return `200g`
299-
300-
`lvm::size_to_bytes`: Converts an LVM size to bytes, the opposite of `lvm::bytes_to_size`.
301-
302171
## Tasks
303172

304-
Documented in the ["Tasks" tab](https://forge.puppet.com/puppetlabs/lvm/tasks) on the forge
173+
See [tasks reference](REFERENCE.md#tasks)
305174

306175
## Plans
307176

308-
### `lvm::expand`
309-
310-
Executes common tasks for expanding mounts, this can include:
311-
312-
* Creating PVs
313-
* Adding PVs to VG
314-
* Extending LV
315-
* Extending filesystem
316-
317-
**Parameters:**
318-
319-
`server`: *String* The target for the plan
320-
321-
`volume_group`: *String* The volume group to which the logical volume belongs
322-
323-
`logical_volume`: *String* The logical volume which is to be expanded
324-
325-
`additional_size`: *String* How much size to add to the LV. This should be specified in LVM format i.e. "200m" or "2.5g"
326-
327-
`disks`: *Array[String]* Any physical disks that should be added to the volume group as part of the expand process
328-
329-
`resize_fs`: *Boolean* Whether or not to resize the filesystem
177+
See [plans reference](REFERENCE.md#plans)
330178

331179
## Limitations
332180

@@ -362,7 +210,15 @@ Some facts reported by this module are being deprecated in favor of upcoming str
362210

363211
## License
364212

365-
This codebase is licensed under the Apache2.0 licensing, however due to the nature of the codebase the open source dependencies may also use a combination of [AGPL](https://opensource.org/license/agpl-v3/), [BSD-2](https://opensource.org/license/bsd-2-clause/), [BSD-3](https://opensource.org/license/bsd-3-clause/), [GPL2.0](https://opensource.org/license/gpl-2-0/), [LGPL](https://opensource.org/license/lgpl-3-0/), [MIT](https://opensource.org/license/mit/) and [MPL](https://opensource.org/license/mpl-2-0/) Licensing.
213+
This codebase is licensed under the GPL 2.0, however due to the nature of the
214+
codebase the open source dependencies may also use a combination of
215+
[AGPL](https://opensource.org/license/agpl-v3/),
216+
[BSD-2](https://opensource.org/license/bsd-2-clause/),
217+
[BSD-3](https://opensource.org/license/bsd-3-clause/),
218+
[GPL2.0](https://opensource.org/license/gpl-2-0/),
219+
[LGPL](https://opensource.org/license/lgpl-3-0/),
220+
[MIT](https://opensource.org/license/mit/) and
221+
[MPL](https://opensource.org/license/mpl-2-0/).
366222

367223
# Contributors
368224

0 commit comments

Comments
 (0)