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?

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/e7242223-07dd-483c-9b66-769f71baf426%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to