Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1803

Core fact disk not available on Windows OS

    Details

    • Type: New Feature
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: FACT 3.6.8
    • Fix Version/s: None
    • Component/s: Windows
    • Labels:
    • Environment:

      Windows all versions (in our environment we only have 2008r2 -> 2016) but all other versions should be effected as well

    • Template:
    • Acceptance Criteria:
      Hide

      When we looked into it a similar structured fact as what this powershell script produces should be desirable because then we could use pieces of it incorporated to the dsc_xdisk resource.

      foreach($disk in Get-Disk){
      $i = 0
      $id = $disk.number
      $size = [math]::Round(($disk.Size/1GB),2)
      $driveletter = Get-Partition $id
      $filesystem = Get-Volume $driveletter.driveletter[1]
      $obj = New-Object -Type PSCustomobject -Property @

      { ID = $id Size = $size UniqueID = $disk.UniqueID DriveLetter = $driveletter.DriveLetter[1] Filesystem = $filesystem.Filesystem }

      $obj
      }

      Show
      When we looked into it a similar structured fact as what this powershell script produces should be desirable because then we could use pieces of it incorporated to the dsc_xdisk resource. foreach($disk in Get-Disk){ $i = 0 $id = $disk.number $size = [math] ::Round(($disk.Size/1GB),2) $driveletter = Get-Partition $id $filesystem = Get-Volume $driveletter.driveletter [1] $obj = New-Object -Type PSCustomobject -Property @ { ID = $id Size = $size UniqueID = $disk.UniqueID DriveLetter = $driveletter.DriveLetter[1] Filesystem = $filesystem.Filesystem } $obj }
    • Team:
      Platform OS
    • QA Risk Assessment:
      Needs Assessment

      Description

      When looking into handling additional hard drives on Windows I consulted our Linux guys to se how they handled the same situation as their platform is a lille bit more mature when it comes to puppet. After their explanation and trying to reproduce the sam behavior on Windows we realized that the built in fact for disks don't report on Windows as it had not been ported to that os for what it seems. This is a really bad shortcoming. There are solutions out there that we are gona stick to for now, but this really is a shortcoming having no facts on windows boxes when it comes to disks.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              freni59 Fredrik Nilsson
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Zendesk Support