Issue #11663 has been updated by Michael Moll.
I just opened pull request 248 at github with an updated version.
Here the facts on a system using SCSI:
blockdevice_cd0_model => DV-28E-N 1.6A
blockdevice_cd0_size => 0
blockdevice_cd0_vendor => TEAC
blockdevice_da0_model => 73.4G MAU3073NC HPC2
blockdevice_da0_size => 73407865856
blockdevice_da0_vendor => HP
blockdevice_da1_model => 73.4G MAU3073NC HPC2
blockdevice_da1_size => 73407865856
blockdevice_da1_vendor => HP
blockdevices => cd0,da0,da1
and a system using ATA_CAM:
blockdevice_ada0_model => Force GT
blockdevice_ada0_size => 120034123776
blockdevice_ada0_vendor => Corsair
blockdevice_ada1_model => HDS721010CLA332
blockdevice_ada1_size => 1000204886016
blockdevice_ada1_vendor => Hitachi
blockdevice_ada2_model => HDS721010CLA332
blockdevice_ada2_size => 1000204886016
blockdevice_ada2_vendor => Hitachi
blockdevices => ada0,ada1,ada2
And the output of the newly added command for ATA_CAM devices:
# /sbin/camcontrol identify ada0
pass0: <Corsair Force GT 1.3.3> ATA-8 SATA 3.x device
pass0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
protocol ATA/ATAPI-8 SATA 3.x
device model Corsair Force GT
firmware revision 1.3.3
serial number XXX
WWN 0000000000000000
cylinders 16383
heads 16
sectors/track 63
sector size logical 512, physical 512, offset 0
LBA supported 234441648 sectors
LBA48 supported 234441648 sectors
PIO supported PIO4
DMA supported WDMA2 UDMA6
media RPM non-rotating
Feature Support Enabled Value Vendor
read ahead yes yes
write cache yes yes
flush cache yes yes
overlap no
Tagged Command Queuing (TCQ) no no
Native Command Queuing (NCQ) yes 32 tags
SMART yes yes
microcode download yes yes
security yes no
power management yes yes
advanced power management yes yes 254/0xFE
automatic acoustic management no no
media status notification no no
power-up in Standby yes no
write-read-verify yes no 0/0x0
unload yes yes
free-fall no no
data set management (TRIM) yes
----------------------------------------
Feature #11663: Add FreeBSD support to blockdevice fact(s)
https://projects.puppetlabs.com/issues/11663#change-66073
Author: Mike Carlson
Status: Tests Insufficient
Priority: Normal
Assignee: Mike Carlson
Category: library
Target version:
Keywords:
Branch: https://github.com/puppetlabs/facter/pull/137
Affected Facter version:
I've added to the blockdevice.rb lib in master to support FreeBSD.
You can see the code on a fork I made of facter on
[github](https://github.com/m87carlson/facter/commit/f5f93ad28383f6a245ee89a8accd07b842bd1717)
Here is an example on a FreeBSD Xen guest:
<pre>
blockdevices => ad0,da0,da1
blockdevice_ad0_model => QEMU HARDDISK/0.10.2
blockdevice_ad0_size => 4194304000
blockdevice_da0_model => QEMU QEMU HARDDISK 0.10
blockdevice_da0_size => 42991616000
blockdevice_da1_model => QEMU QEMU HARDDISK 0.10
blockdevice_da1_size => 10695475200
</pre>
And here is a physical system with a combination of USB drives:
<pre>
blockdevices => ad10,ad12,ad4,ad6,ad8,da0,da1
blockdevice_ad10_model => WDC WD1003FBYX-01Y7B0/01.01V01
blockdevice_ad10_size => 1000204886016
blockdevice_ad12_model => WDC WD1003FBYX-01Y7B0/01.01V01
blockdevice_ad12_size => 1000204886016
blockdevice_ad4_model => ST2000DL003-9VT166/CC98
blockdevice_ad4_size => 2000398934016
blockdevice_ad6_model => WDC WD1003FBYX-01Y7B0/01.01V01
blockdevice_ad6_size => 1000204886016
blockdevice_ad8_model => WDC WD1003FBYX-01Y7B0/01.01V01
blockdevice_ad8_size => 1000204886016
blockdevice_da0_model => WD Ext HDD 1021 2021
blockdevice_da0_size => 3000590401536
blockdevice_da1_model => Initio INIC-1610P 1.01
blockdevice_da1_size => 2000398934016
</pre>
size is reported in bytes.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.