So I have the following powershell command that gives me the data I want, but I'm not sure how I can get Puppet to ingest it as a fact.
Get-WMIObject Win32_Volume | Where-Object {$_.DriveType -eq "3" -and $_.Label -ne "System Reserved" } | select Name, Label
The Output looks like this.
Name Label
---- -----
E:\ EVol
D:\ DVol
C:\
I wanted to get the Drive letters and labels in to a single fact in Puppet so that I could build Nagios disk checks off of them, But I'm not sure how to get the output to a format that Puppet will like.
Any powershell / puppet fact outputs out there able to help?