libs: add ceph_osd_devices fact listing ceph OSD block devices #504

Merged
benvin merged 1 commits from benvin/ceph-osd-devices-fact into develop 2026-08-02 17:25:18 +10:00
Owner

A forthcoming profile needs to set the I/O scheduler to noop/none on the disks backing ceph OSDs, so Puppet must know which block devices those are. This fact surfaces them by inspecting LVM PVs whose volume group belongs to ceph.

  • add ceph_osd_devices fact returning the sorted array of PV device paths whose VG name starts with ceph-
  • confine the fact to physical Linux hosts with pvs installed so it never resolves on VMs

https://claude.ai/code/session_01JUoARVdmhxKQHyyyp1pxeT

A forthcoming profile needs to set the I/O scheduler to noop/none on the disks backing ceph OSDs, so Puppet must know which block devices those are. This fact surfaces them by inspecting LVM PVs whose volume group belongs to ceph. - add ceph_osd_devices fact returning the sorted array of PV device paths whose VG name starts with ceph- - confine the fact to physical Linux hosts with pvs installed so it never resolves on VMs https://claude.ai/code/session_01JUoARVdmhxKQHyyyp1pxeT
unkinben added 1 commit 2026-08-02 16:57:48 +10:00
libs: add ceph_osd_devices fact listing ceph OSD block devices
ci/woodpecker/pr/puppet-lint Pipeline was successful
ci/woodpecker/pr/ruby-validate Pipeline was successful
ci/woodpecker/pr/yamllint Pipeline was successful
ci/woodpecker/pr/bolt-validate Pipeline was successful
ci/woodpecker/pr/erb-validate Pipeline was successful
ci/woodpecker/pr/epp-validate Pipeline was successful
ci/woodpecker/pr/puppet-validate Pipeline was successful
ci/woodpecker/pr/ruby-check Pipeline was successful
ab23957f43
A forthcoming profile needs to set the I/O scheduler to noop/none on
disks backing ceph OSDs. Puppet needs to know which block devices those
are, which requires inspecting LVM PVs whose VG belongs to ceph.

- add ceph_osd_devices fact returning the sorted array of PV device
  paths whose volume group name starts with ceph-
- confine the fact to physical Linux hosts that have pvs installed so it
  never resolves on VMs

Claude-Session: https://claude.ai/code/session_01JUoARVdmhxKQHyyyp1pxeT
benvin merged commit d5cfaed7d4 into develop 2026-08-02 17:25:18 +10:00
benvin deleted branch benvin/ceph-osd-devices-fact 2026-08-02 17:25:18 +10:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/puppet-prod#504