puppetlabs-lvm icon indicating copy to clipboard operation
puppetlabs-lvm copied to clipboard

logical_volume: Add option to use dm device-path for mountpoint

Open mmusenbr opened this issue 10 months ago • 1 comments

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)

mmusenbr avatar Feb 19 '25 15:02 mmusenbr

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Feb 19 '25 15:02 CLAassistant