We use the windows disk facts module 
at https://forge.puppet.com/dylanratcliffe/windows_disk_facts

That should give you what you want then you can use it within your 
manifests.

On Tuesday, October 17, 2017 at 4:22:20 PM UTC-5, Ryan Murphy wrote:
>
> 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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/89e7a419-4f86-44b2-8d9a-728c5649af84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to