Good day, We were working on the lvm module from the forge and one item that came to mind was the ability to dynamically retrieve the disks then determine which ones may be used for Lvm.
For example sda,sdb,sdc are present. We would like to get the disk in an array or hash possibly and remove or ignore the first item (sda) then add sdb,sdc to lvm for usage. I thought Facter disks like below but was a little unsure best option after that. $disks = Facter['os']['disks'] { fd0 => { size => "4.00 KiB", size_bytes => 4096 }, sda => { model => "Virtual Disk", size => "128.00 GiB", size_bytes => 137438953472, vendor => "Msft" }, sdb => { model => "Virtual Disk", size => "400.00 GiB", size_bytes => 429496729600, vendor => "Msft" }, sdc => { model => "Virtual Disk", size => "100.00 GiB", size_bytes => 107374182400, vendor => "Msft" } } Suggestions to good information or help would be greatly appreciated. Thank you -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5e2761d1-14b4-47b5-8d77-66b1c5a66a43%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.