puppetlabs-lvm
puppetlabs-lvm copied to clipboard
logical_volume: Add option to use dm device-path for mountpoint
logical_volume: Add option use_dm_devicepath to use /dev/mapper/$vg-$lv instead of /dev/$vg/$lv
Summary
We have the requirement to use /dev/mapper entries in /etc/fstab, currently when using the lvm::logical_volume entries will always be /dev/$vg/$lv. To allow creation of entries with the /dev/mapper entries, an additional option use_dm_devicepath is introduced. The default value is set to keep the previous/default behavior.
From previous PRs (!124, !153, !199) it seems other have (or had) the requirement too, but it the PRs where never finalized from the PR openers.
Related Issues
- https://github.com/puppetlabs/puppetlabs-lvm/pull/124
- https://github.com/puppetlabs/puppetlabs-lvm/pull/153
- https://github.com/puppetlabs/puppetlabs-lvm/pull/199
Checklist
- [ ] 🟢 Spec tests.
- [ ] 🟢 Acceptance tests.
- [x] Manually verified. (For example
puppet apply)